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 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 { new SelectionProcess{ Status = "", Name = ""}, new SelectionProcess{ Status = "", Name = ""}, new SelectionProcess{ Status = "", Name = ""} } }; 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 { new SelectionProcess{ Status = "", Name = ""}, new SelectionProcess{ Status = "", Name = ""}, new SelectionProcess{ Status = "", Name = ""} } }; var applicants = new List { applicant1, applicant2 }; return applicants; } public static List GetListOfSelectionProcess() { var selectionProcess = new SelectionProcess { Applicant = GetListOfApplicants()[0], Date = DateTime.Now, Link = "dasda", Name = "adsda", SelectionLevelId = 1, Status = "completed" }; var selectionProcesses = new List { selectionProcess }; return selectionProcesses; ; } public static List 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 }; return ads; } public static List GetListOfUsers() { var user = new User { FirstName = "Dzenis", Email = "dzenis@gmail.com", LastName = "Hadzifejzovic", UserName = "dzenis12" }; var users = new List { user }; return users; } public static List GetListOfComments() { var comment = new Comment { Applicant = GetListOfApplicants()[0], Content = "dsadsad", DateOfSending = DateTime.Now, User = GetListOfUsers()[0], }; var comments = new List { comment }; return comments; } public static List GetListOfTechnologies() { var technology = new Technology { Name = ".NET", TechnologyType = TechnologyTypes.Backend, Ads = new List(), TechnologyApplicants = new List() }; var techologies = new List { technology }; return techologies; } public static List GetOptions() { var option1 = new ApplicantOptionsDTO { ApplicantId = GetListOfApplicants()[0].ApplicantId, FirstName = "Option1", LastName = "Optioon2" }; var options = new List { option1 }; return options; } } }