Ejemplo n.º 1
0
 private void GenerateDepartmentalArchives()
 {
     archivesList = _fixture.CreateMany <DepartmentalArchives>(ARCHIVES_COUNT).AsQueryable();
     archive      = archivesList.First();
     _archivesRepository.GetAll().Returns(archivesList);
     _archivesRepository.GetById(archive.Id).Returns(archive);
 }
Ejemplo 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);
        }