You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. using Diligent.WebAPI.Data.Entities;
  2. namespace Diligent.WebAPI.Tests
  3. {
  4. public static class MockData
  5. {
  6. public static List<Applicant> GetListOfApplicants()
  7. {
  8. var applicant = new Applicant
  9. {
  10. ApplicantId = 1,
  11. ApplicationChannel = "Instagram",
  12. BitBucketLink = null,
  13. CV = "link",
  14. DateOfApplication = DateTime.Now,
  15. Email = "some@mail.com",
  16. Experience = 1,
  17. FirstName = "Dzenis",
  18. LastName = "Hadzifejzovic",
  19. GithubLink = null,
  20. LinkedlnLink = null,
  21. PhoneNumber = "432424",
  22. Position = ".NET Developer",
  23. TypeOfEmployment = Applicant.TypesOfEmployment.Intership,
  24. SelectionProcesses = new List<SelectionProcess>
  25. {
  26. new SelectionProcess{ Id = 1, Status = "", Name = ""},
  27. new SelectionProcess{ Id = 2, Status = "", Name = ""},
  28. new SelectionProcess{ Id = 3, Status = "", Name = ""}
  29. }
  30. };
  31. var applicants = new List<Applicant>
  32. {
  33. applicant
  34. };
  35. return applicants;
  36. }
  37. public static List<SelectionProcess> GetListOfSelectionProcess()
  38. {
  39. var selectionProcess = new SelectionProcess
  40. {
  41. Applicant = GetListOfApplicants()[0],
  42. Date = DateTime.Now,
  43. Link = "dasda",
  44. Name = "adsda",
  45. SelectionLevelId = 1,
  46. Status = "completed"
  47. };
  48. var selectionProcesses = new List<SelectionProcess>
  49. {
  50. selectionProcess
  51. };
  52. return selectionProcesses;
  53. ;
  54. }
  55. public static List<Ad> GetListOfAds()
  56. {
  57. var ad = new Ad
  58. {
  59. Applicants = GetListOfApplicants(),
  60. CreatedAt = DateTime.Now,
  61. ExpiredAt = DateTime.Now.AddDays(5),
  62. MinimumExperience = 1,
  63. Title = ".NET Intern",
  64. KeyResponsibilities = "dasdadas",
  65. Offer = "dsadsada",
  66. Requirements = "dsadsadas"
  67. };
  68. var ads = new List<Ad>
  69. {
  70. ad
  71. };
  72. return ads;
  73. }
  74. public static List<User> GetListOfUsers()
  75. {
  76. var user = new User
  77. {
  78. FirstName = "Dzenis",
  79. Email = "dzenis@gmail.com",
  80. LastName = "Hadzifejzovic",
  81. UserName = "dzenis12"
  82. };
  83. var users = new List<User>
  84. {
  85. user
  86. };
  87. return users;
  88. }
  89. public static List<Comment> GetListOfComments()
  90. {
  91. var comment = new Comment
  92. {
  93. Applicant = GetListOfApplicants()[0],
  94. Content = "dsadsad",
  95. DateOfSending = DateTime.Now,
  96. User = GetListOfUsers()[0],
  97. };
  98. var comments = new List<Comment>
  99. {
  100. comment
  101. };
  102. return comments;
  103. }
  104. }
  105. }