public void TestGetNewEmployers() { var employer1 = _employerAccountsCommand.CreateTestEmployer(1, _organisationsCommand.CreateTestOrganisation(0)); employer1.CreatedTime = DateTime.Now.AddDays(-2); _employerAccountsCommand.UpdateEmployer(employer1); var employer2 = _employerAccountsCommand.CreateTestEmployer(2, _organisationsCommand.CreateTestOrganisation(0)); employer2.CreatedTime = DateTime.Now.AddDays(-1); _employerAccountsCommand.UpdateEmployer(employer2); var employer3 = _employerAccountsCommand.CreateTestEmployer(3, _organisationsCommand.CreateTestOrganisation(0)); employer3.CreatedTime = DateTime.Now.AddDays(-3); _employerAccountsCommand.UpdateEmployer(employer3); var recruiter4 = _employerAccountsCommand.CreateTestRecruiter(4, _organisationsCommand.CreateTestOrganisation(0)); recruiter4.CreatedTime = DateTime.Now.AddDays(-1); _employerAccountsCommand.UpdateEmployer(recruiter4); var recruiter5 = _employerAccountsCommand.CreateTestRecruiter(5, _organisationsCommand.CreateTestOrganisation(0)); recruiter5.CreatedTime = DateTime.Now.AddDays(0); _employerAccountsCommand.UpdateEmployer(recruiter5); var recruiter6 = _employerAccountsCommand.CreateTestRecruiter(6, _organisationsCommand.CreateTestOrganisation(0)); recruiter6.CreatedTime = DateTime.Now.AddDays(-4); _employerAccountsCommand.UpdateEmployer(recruiter6); }
private Employer CreateRecruiter(int index) { return(_employerAccountsCommand.CreateTestRecruiter(index, _organisationsCommand.CreateTestOrganisation(0))); }