public SchoolLayoutController(IService<BriefRequest, BriefModel> schoolBriefService, IRootMetricNodeResolver rootMetricNodeResolver, IDomainSpecificMetricNodeResolver domainSpecificMetricNodeResolver, ISchoolAreaLinks schoolLinks, IService<ResourcesRequest, IEnumerable<ResourceModel>> schoolMenuResourceRequestService) { this.schoolBriefService = schoolBriefService; this.rootMetricNodeResolver = rootMetricNodeResolver; this.domainSpecificMetricNodeResolver = domainSpecificMetricNodeResolver; this.schoolLinks = schoolLinks; this.schoolMenuResourceRequestService = schoolMenuResourceRequestService; }
protected override void EstablishContext() { schoolAreaLinks = new SchoolAreaLinksFake(); studentSchoolInformationRepository = mocks.StrictMock<IRepository<StudentSchoolInformation>>(); Expect.Call(studentSchoolInformationRepository.GetAll()).Return(GetSchoolStudentInformation()); gradeLevelUtilitiesProvider = mocks.StrictMock<IGradeLevelUtilitiesProvider>(); Expect.Call(gradeLevelUtilitiesProvider.FormatGradeLevelForSorting("12th grade")).Repeat.Times(3).Return(12); Expect.Call(gradeLevelUtilitiesProvider.FormatGradeLevelForSorting("Infant/toddler")).Return(-2); base.EstablishContext(); }
protected override void EstablishContext() { schoolAreaLinks = new SchoolAreaLinksFake(); schoolStudentDemographicRepository = mocks.StrictMock<IRepository<SchoolStudentDemographic>>(); schoolProgramPopulationRepository = mocks.StrictMock<IRepository<SchoolProgramPopulation>>(); schoolIndicatorPopulationRepository = mocks.StrictMock<IRepository<SchoolIndicatorPopulation>>(); Expect.Call(schoolStudentDemographicRepository.GetAll()).Return(GetSchoolStudentDemographic()); Expect.Call(schoolProgramPopulationRepository.GetAll()).Return(GetSchoolProgramPopulation()); Expect.Call(schoolIndicatorPopulationRepository.GetAll()).Return(GetSchoolIndicatorPopulation()); base.EstablishContext(); }
/// <summary> /// Initializes a new instance of the <see cref="WatchListLinkProvider" /> class. /// </summary> /// <param name="staffAreaLinks">The staff area links.</param> /// <param name="schoolAreaLinks">The school area links.</param> /// <param name="localEducationAgencyAreaLinks">The local education agency area links.</param> public WatchListLinkProvider( IStaffAreaLinks staffAreaLinks, ISchoolAreaLinks schoolAreaLinks, ILocalEducationAgencyAreaLinks localEducationAgencyAreaLinks) { StaffAreaLinks = staffAreaLinks; SchoolAreaLinks = schoolAreaLinks; LocalEducationAgencyAreaLinks = localEducationAgencyAreaLinks; }