Ejemplo n.º 1
0
        public LogInAsController(IService<CanLogInAsUserRequest, CanLogInAsUserModel> service, ILocalEducationAgencyAreaLinks localEducationAgencyAreaLinks,
			ISignInRequestMessageProvider signInRequestMessageProvider)
        {
            this.service = service;
            this.localEducationAgencyAreaLinks = localEducationAgencyAreaLinks;
            this.signInRequestMessageProvider = signInRequestMessageProvider;
        }
 public StudentSchoolCategoryListController(
     IService<EdFiGridMetaRequest, EdFiGridModel> gridMetaService,
     IService<EdFiGridRequest, EdFiGridModel> gridService,
     IMetricsBasedWatchListDataProvider metricsBasedWatchListDataProvider,
     IStudentSchoolCategoryMenuService menuService,
     IPreviousNextSessionProvider previousNextSessionProvider,
     ILocalEducationAgencyAreaLinks localEducationAgencyAreaLinks)
     : base(gridMetaService, gridService, previousNextSessionProvider, metricsBasedWatchListDataProvider, localEducationAgencyAreaLinks)
 {
     MenuService = menuService;
 }
Ejemplo n.º 3
0
 public GeneralOverviewController(
     IService<EdFiGridMetaRequest, EdFiGridModel> gridMetaService,
     IService<EdFiGridRequest, EdFiGridModel> gridService,
     IPreviousNextSessionProvider previousNextSessionProvider,
     IService<DefaultSectionRequest, DefaultSectionModel> defaultSectionService,
     IMetricsBasedWatchListDataProvider watchListProvider,
     ILocalEducationAgencyAreaLinks localEducationAgencyAreaLinks)
     : base(gridMetaService, gridService, previousNextSessionProvider, watchListProvider, localEducationAgencyAreaLinks)
 {
     DefaultSectionService = defaultSectionService;
 }
Ejemplo n.º 4
0
 public WatchListSearchLinkProvider(IStaffAreaLinks staffAreaLinks,
     ILocalEducationAgencyAreaLinks localEducationAgencyAreaLinks,
     IWatchListLinkProvider watchListLinkProvider,
     IRepository<MetricBasedWatchListOption> metricBasedWatchListOptionRepository,
     IService<MetricsBasedWatchListMenuRequest, List<StudentListMenuModel>> metricsBasedWatchListMenuService)
 {
     StaffAreaLinks = staffAreaLinks;
     LocalEducationAgencyAreaLinks = localEducationAgencyAreaLinks;
     WatchListLinkProvider = watchListLinkProvider;
     MetricBasedWatchListOptionRepository = metricBasedWatchListOptionRepository;
     MetricsBasedWatchListMenuService = metricsBasedWatchListMenuService;
 }
Ejemplo n.º 5
0
 public EdFiGridBaseController(
     IService<EdFiGridMetaRequest, EdFiGridModel> edFiGridMetaService,
     IService<EdFiGridRequest, EdFiGridModel> edFiGridService,
     IPreviousNextSessionProvider previousNextSessionProvider,
     IMetricsBasedWatchListDataProvider metricsBasedWatchListDataProvider,
     ILocalEducationAgencyAreaLinks localEducationAgencyAreaLinks)
 {
     EdFiGridMetaService = edFiGridMetaService;
     EdFiGridService = edFiGridService;
     PreviousNextSessionProvider = previousNextSessionProvider;
     MetricsBasedWatchListDataProvider = metricsBasedWatchListDataProvider;
     LocalEducationAgencyAreaLinks = localEducationAgencyAreaLinks;
 }
        protected override void EstablishContext()
        {
            staffCustomStudentListRepository = new Mock<IPersistingRepository<StaffCustomStudentList>>();
            staffCustomStudentListStudentRepository = new Mock<IPersistingRepository<StaffCustomStudentListStudent>>();
            cacheProvider = new Mock<ICacheProvider>();
            localEducationAgencyAreaLinks = new LocalEducationAgencyAreaLinksFake();
            staffAreaLinks = new StaffAreaLinksFake();

            suppliedCustomStudentListData = GetSuppliedCustomStudentListData();
            suppliedCustomStudentListStudentData = GetSuppliedCustomStudentListStudentData();

            staffCustomStudentListRepository.Setup(x => x.GetAll()).Returns(suppliedCustomStudentListData);
            staffCustomStudentListStudentRepository.Setup(x => x.GetAll()).Returns(suppliedCustomStudentListStudentData);
        }
        protected override void EstablishContext()
        {
            containerMock = new WindsorContainer();
            localEducationAgencyAreaLinks = mocks.StrictMock<ILocalEducationAgencyAreaLinks>();

            messageProvider = new SecurityTokenServiceSignInRequestMessageProvider(localEducationAgencyAreaLinks);
            model = new SignInRequestAdornModel() { LocalEducationAgencyCode = code, LocalEducationAgencyId = leaID, LocalEducationAgencyName = name };
            var url = string.Format(linkPattern, code);
            actualDictionary = new Dictionary<string, string> {{"lea", code}, {"leaName", name}, {"home", url}};

            localEducationAgencyAreaLinks.Expect(x => x.Home(code)).Return(url);

            containerMock.Register(Component.For<ILocalEducationAgencyAreaLinks>().Instance(localEducationAgencyAreaLinks));
            IoC.Initialize(containerMock);
        }
 public SecurityTokenServiceSignInRequestMessageProvider(ILocalEducationAgencyAreaLinks localEducationAgencyAreaLinks)
 {
     this.localEducationAgencyAreaLinks = localEducationAgencyAreaLinks;
 }
Ejemplo n.º 9
0
 /// <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;
 }