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

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