Esempio n. 1
0
        public void GetInternshipPeriodShouldReturnTheCorrectPeriod(string period, InternshipPeriod expectedPeriod)
        {
            var model = GetAddAssignmentModel();

            model.InternshipPeriod = period;
            var result = _assignmentsController.GetInterschipPeriode(model);

            Assert.That(result, Is.EqualTo(expectedPeriod));
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void AddToPeriodRepository(InternshipPeriod period)
 {
     _internshipPeriodRepository.Add(period);
 }
Esempio n. 4
0
        public void ConvertInternshipPeriodToStringShouldReturnCorrectString(InternshipPeriod period, string expected)
        {
            var result = _assignmentsController.ConvertInternshipPeriodToString(period);

            Assert.That(result, Is.EqualTo(expected));
        }