Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. using Diligent.WebAPI.Contracts.DTOs.Applicant;
  2. using Diligent.WebAPI.Data.Entities;
  3. namespace Diligent.WebAPI.Tests
  4. {
  5. public static class MockData
  6. {
  7. public static ApplicantFilterDto GetApplicantFilters()
  8. {
  9. return new ApplicantFilterDto
  10. {
  11. CurrentPage = 1,
  12. PageSize = 4
  13. };
  14. }
  15. public static List<Applicant> GetListOfApplicants()
  16. {
  17. var applicant1 = new Applicant
  18. {
  19. ApplicantId = 1,
  20. ApplicationChannel = "Instagram",
  21. BitBucketLink = null,
  22. CV = "link",
  23. DateOfApplication = DateTime.Now,
  24. Email = "some@mail.com",
  25. Experience = 1,
  26. FirstName = "Dzenis",
  27. LastName = "Hadzifejzovic",
  28. GithubLink = null,
  29. LinkedlnLink = null,
  30. PhoneNumber = "432424",
  31. Position = ".NET Developer",
  32. TypeOfEmployment = Applicant.TypesOfEmployment.Intership,
  33. SelectionProcesses = new List<SelectionProcess>
  34. {
  35. new SelectionProcess{ Status = "", Name = ""},
  36. new SelectionProcess{ Status = "", Name = ""},
  37. new SelectionProcess{ Status = "", Name = ""}
  38. }
  39. };
  40. var applicant2 = new Applicant
  41. {
  42. ApplicantId = 2,
  43. ApplicationChannel = "Instagram",
  44. BitBucketLink = null,
  45. CV = "link",
  46. DateOfApplication = DateTime.Now,
  47. Email = "some@mail.com",
  48. Experience = 3,
  49. FirstName = "Ermin",
  50. LastName = "Bronja",
  51. GithubLink = null,
  52. LinkedlnLink = null,
  53. PhoneNumber = "432424",
  54. Position = ".NET Developer",
  55. TypeOfEmployment = Applicant.TypesOfEmployment.Posao,
  56. SelectionProcesses = new List<SelectionProcess>
  57. {
  58. new SelectionProcess{ Status = "", Name = ""},
  59. new SelectionProcess{ Status = "", Name = ""},
  60. new SelectionProcess{ Status = "", Name = ""}
  61. }
  62. };
  63. var applicants = new List<Applicant>
  64. {
  65. applicant1,
  66. applicant2
  67. };
  68. return applicants;
  69. }
  70. public static List<SelectionProcess> GetListOfSelectionProcess()
  71. {
  72. var selectionProcess = new SelectionProcess
  73. {
  74. Applicant = GetListOfApplicants()[0],
  75. Date = DateTime.Now,
  76. Link = "dasda",
  77. Name = "adsda",
  78. SelectionLevelId = 1,
  79. Status = "completed"
  80. };
  81. var selectionProcesses = new List<SelectionProcess>
  82. {
  83. selectionProcess
  84. };
  85. return selectionProcesses;
  86. ;
  87. }
  88. public static List<Ad> GetListOfAds()
  89. {
  90. var ad = new Ad
  91. {
  92. Id = 1,
  93. Applicants = GetListOfApplicants(),
  94. CreatedAt = DateTime.Now,
  95. ExpiredAt = DateTime.Now.AddDays(5),
  96. MinimumExperience = 1,
  97. Title = ".NET Intern",
  98. KeyResponsibilities = "dasdadas",
  99. Offer = "dsadsada",
  100. Requirements = "dsadsadas"
  101. };
  102. var ads = new List<Ad>
  103. {
  104. ad
  105. };
  106. return ads;
  107. }
  108. public static List<User> GetListOfUsers()
  109. {
  110. var user = new User
  111. {
  112. FirstName = "Dzenis",
  113. Email = "dzenis@gmail.com",
  114. LastName = "Hadzifejzovic",
  115. UserName = "dzenis12"
  116. };
  117. var users = new List<User>
  118. {
  119. user
  120. };
  121. return users;
  122. }
  123. public static List<Comment> GetListOfComments()
  124. {
  125. var comment = new Comment
  126. {
  127. Applicant = GetListOfApplicants()[0],
  128. Content = "dsadsad",
  129. DateOfSending = DateTime.Now,
  130. User = GetListOfUsers()[0],
  131. };
  132. var comments = new List<Comment>
  133. {
  134. comment
  135. };
  136. return comments;
  137. }
  138. public static List<Technology> GetListOfTechnologies()
  139. {
  140. var technology = new Technology
  141. {
  142. Name = ".NET",
  143. TechnologyType = TechnologyTypes.Backend,
  144. Ads = new List<Ad>(),
  145. TechnologyApplicants = new List<TechnologyApplicant>()
  146. };
  147. var techologies = new List<Technology>
  148. {
  149. technology
  150. };
  151. return techologies;
  152. }
  153. public static List<ApplicantOptionsDTO> GetOptions()
  154. {
  155. var option1 = new ApplicantOptionsDTO
  156. {
  157. ApplicantId = GetListOfApplicants()[0].ApplicantId,
  158. FirstName = "Option1",
  159. LastName = "Optioon2"
  160. };
  161. var options = new List<ApplicantOptionsDTO> { option1 };
  162. return options;
  163. }
  164. }
  165. }