| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- using Diligent.WebAPI.Contracts.DTOs.Applicant;
- using Diligent.WebAPI.Data.Entities;
-
- namespace Diligent.WebAPI.Tests
- {
- public static class MockData
- {
- public static ApplicantFilterDto GetApplicantFilters()
- {
- return new ApplicantFilterDto
- {
- CurrentPage = 1,
- PageSize = 4
- };
- }
- public static List<Applicant> GetListOfApplicants()
- {
- var applicant1 = new Applicant
- {
- ApplicantId = 1,
- ApplicationChannel = "Instagram",
- BitBucketLink = null,
- CV = "link",
- DateOfApplication = DateTime.Now,
- Email = "some@mail.com",
- Experience = 1,
- FirstName = "Dzenis",
- LastName = "Hadzifejzovic",
- GithubLink = null,
- LinkedlnLink = null,
- PhoneNumber = "432424",
- Position = ".NET Developer",
- TypeOfEmployment = Applicant.TypesOfEmployment.Intership,
- SelectionProcesses = new List<SelectionProcess>
- {
- new SelectionProcess{ Status = "", Name = ""},
- new SelectionProcess{ Status = "", Name = ""},
- new SelectionProcess{ Status = "", Name = ""}
- },
- Gender = Applicant.Genders.M,
- ProfessionalQualification = "Elektrotehnicki fakultet"
- };
-
- var applicant2 = new Applicant
- {
- ApplicantId = 2,
- ApplicationChannel = "Instagram",
- BitBucketLink = null,
- CV = "link",
- DateOfApplication = DateTime.Now,
- Email = "some@mail.com",
- Experience = 3,
- FirstName = "Ermin",
- LastName = "Bronja",
- GithubLink = null,
- LinkedlnLink = null,
- PhoneNumber = "432424",
- Position = ".NET Developer",
- TypeOfEmployment = Applicant.TypesOfEmployment.Posao,
- SelectionProcesses = new List<SelectionProcess>
- {
- new SelectionProcess{ Status = "", Name = ""},
- new SelectionProcess{ Status = "", Name = ""},
- new SelectionProcess{ Status = "", Name = ""}
- },
- Gender = Applicant.Genders.M,
- ProfessionalQualification = "Elektrotehnicki fakultet"
- };
-
- var applicants = new List<Applicant>
- {
- applicant1,
- applicant2
- };
-
- return applicants;
- }
-
- public static List<SelectionProcess> GetListOfSelectionProcess()
- {
- var selectionProcess = new SelectionProcess
- {
- Applicant = GetListOfApplicants()[0],
- Date = DateTime.Now,
- Link = "dasda",
- Name = "adsda",
- SelectionLevelId = 1,
- Status = "completed"
- };
-
- var selectionProcesses = new List<SelectionProcess>
- {
- selectionProcess
- };
-
- return selectionProcesses;
- ;
- }
- public static List<Ad> GetListOfAds()
- {
- var ad = new Ad
- {
- Id = 1,
- Applicants = GetListOfApplicants(),
- CreatedAt = DateTime.Now,
- ExpiredAt = DateTime.Now.AddDays(5),
- MinimumExperience = 1,
- Title = ".NET Intern",
- KeyResponsibilities = "dasdadas",
- Offer = "dsadsada",
- Requirements = "dsadsadas"
- };
-
- var ads = new List<Ad>
- {
- ad
- };
-
- return ads;
- }
-
- public static List<User> GetListOfUsers()
- {
- var user = new User
- {
- FirstName = "Dzenis",
- Email = "dzenis@gmail.com",
- LastName = "Hadzifejzovic",
- UserName = "dzenis12"
- };
-
- var users = new List<User>
- {
- user
- };
-
- return users;
- }
-
- public static List<Comment> GetListOfComments()
- {
- var comment = new Comment
- {
- Applicant = GetListOfApplicants()[0],
- Content = "dsadsad",
- DateOfSending = DateTime.Now,
- User = GetListOfUsers()[0],
- };
-
- var comments = new List<Comment>
- {
- comment
- };
-
- return comments;
- }
-
- public static List<Technology> GetListOfTechnologies()
- {
- var technology = new Technology
- {
- Name = ".NET",
- TechnologyType = TechnologyTypes.Backend,
- Ads = new List<Ad>(),
- TechnologyApplicants = new List<TechnologyApplicant>()
- };
-
- var techologies = new List<Technology>
- {
- technology
- };
-
- return techologies;
- }
-
- public static List<ApplicantOptionsDTO> GetOptions()
- {
- var option1 = new ApplicantOptionsDTO
- {
- ApplicantId = GetListOfApplicants()[0].ApplicantId,
- FirstName = "Option1",
- LastName = "Optioon2"
- };
-
- var options = new List<ApplicantOptionsDTO> { option1 };
-
- return options;
- }
- }
- }
|