public void GetInternshipPeriodShouldReturnTheCorrectPeriod(string period, InternshipPeriod expectedPeriod) { var model = GetAddAssignmentModel(); model.InternshipPeriod = period; var result = _assignmentsController.GetInterschipPeriode(model); Assert.That(result, Is.EqualTo(expectedPeriod)); }
public void CreateArchive(InternshipPeriod period) { var archive = new DepartmentalArchives { InternshipPeriod = period, CompaniesCount = GetCompaniesCount(), CompanyOffersCount = GetCompanyOffersCount(), EmployeesCount = GetEmployeesCount(), InternshipApplicationsCount = GetInternshipApplicationsCount(), InternshipOffersCount = GetPublicatedIntershipOffersCount(), InterviewsCount = GetInterviewsCount(), StudentsCount = GetStudentsCount(), StudentsWithInternship = GetStudentsWithInternshipCount() }; _archivesRepository.Add(archive); }
public void AddToPeriodRepository(InternshipPeriod period) { _internshipPeriodRepository.Add(period); }
public void ConvertInternshipPeriodToStringShouldReturnCorrectString(InternshipPeriod period, string expected) { var result = _assignmentsController.ConvertInternshipPeriodToString(period); Assert.That(result, Is.EqualTo(expected)); }