Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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. Gender = Applicant.Genders.M,
  40. ProfessionalQualification = "Elektrotehnicki fakultet"
  41. };
  42. var applicant2 = new Applicant
  43. {
  44. ApplicantId = 2,
  45. ApplicationChannel = "Instagram",
  46. BitBucketLink = null,
  47. CV = "link",
  48. DateOfApplication = DateTime.Now,
  49. Email = "some@mail.com",
  50. Experience = 3,
  51. FirstName = "Ermin",
  52. LastName = "Bronja",
  53. GithubLink = null,
  54. LinkedlnLink = null,
  55. PhoneNumber = "432424",
  56. Position = ".NET Developer",
  57. TypeOfEmployment = Applicant.TypesOfEmployment.Posao,
  58. SelectionProcesses = new List<SelectionProcess>
  59. {
  60. new SelectionProcess{ Status = "", Name = ""},
  61. new SelectionProcess{ Status = "", Name = ""},
  62. new SelectionProcess{ Status = "", Name = ""}
  63. },
  64. Gender = Applicant.Genders.M,
  65. ProfessionalQualification = "Elektrotehnicki fakultet"
  66. };
  67. var applicants = new List<Applicant>
  68. {
  69. applicant1,
  70. applicant2
  71. };
  72. return applicants;
  73. }
  74. public static List<SelectionProcess> GetListOfSelectionProcess()
  75. {
  76. var selectionProcess = new SelectionProcess
  77. {
  78. Applicant = GetListOfApplicants()[0],
  79. Date = DateTime.Now,
  80. Link = "dasda",
  81. Name = "adsda",
  82. SelectionLevelId = 1,
  83. Status = "completed"
  84. };
  85. var selectionProcesses = new List<SelectionProcess>
  86. {
  87. selectionProcess
  88. };
  89. return selectionProcesses;
  90. ;
  91. }
  92. public static List<Ad> GetListOfAds()
  93. {
  94. var ad = new Ad
  95. {
  96. Id = 1,
  97. Applicants = GetListOfApplicants(),
  98. CreatedAt = DateTime.Now,
  99. ExpiredAt = DateTime.Now.AddDays(5),
  100. MinimumExperience = 1,
  101. Title = ".NET Intern",
  102. KeyResponsibilities = "dasdadas",
  103. Offer = "dsadsada",
  104. Requirements = "dsadsadas"
  105. };
  106. var ads = new List<Ad>
  107. {
  108. ad
  109. };
  110. return ads;
  111. }
  112. public static List<User> GetListOfUsers()
  113. {
  114. var user = new User
  115. {
  116. FirstName = "Dzenis",
  117. Email = "dzenis@gmail.com",
  118. LastName = "Hadzifejzovic",
  119. UserName = "dzenis12"
  120. };
  121. var users = new List<User>
  122. {
  123. user
  124. };
  125. return users;
  126. }
  127. public static List<Comment> GetListOfComments()
  128. {
  129. var comment = new Comment
  130. {
  131. Applicant = GetListOfApplicants()[0],
  132. Content = "dsadsad",
  133. DateOfSending = DateTime.Now,
  134. User = GetListOfUsers()[0],
  135. };
  136. var comments = new List<Comment>
  137. {
  138. comment
  139. };
  140. return comments;
  141. }
  142. public static List<Technology> GetListOfTechnologies()
  143. {
  144. var technology = new Technology
  145. {
  146. Name = ".NET",
  147. TechnologyType = TechnologyTypes.Backend,
  148. Ads = new List<Ad>(),
  149. TechnologyApplicants = new List<TechnologyApplicant>()
  150. };
  151. var techologies = new List<Technology>
  152. {
  153. technology
  154. };
  155. return techologies;
  156. }
  157. public static List<ApplicantOptionsDTO> GetOptions()
  158. {
  159. var option1 = new ApplicantOptionsDTO
  160. {
  161. ApplicantId = GetListOfApplicants()[0].ApplicantId,
  162. FirstName = "Option1",
  163. LastName = "Optioon2"
  164. };
  165. var options = new List<ApplicantOptionsDTO> { option1 };
  166. return options;
  167. }
  168. }
  169. }