public RankingController( ICentresService centresService, IRegionDataService regionDataService ) { this.centresService = centresService; this.regionDataService = regionDataService; }
public DashboardInformationService( ISupportTicketDataService ticketDataService, IUserDataService userDataService, ICourseDataService courseDataService, ICentresService centresService, ICentresDataService centresDataService ) { this.ticketDataService = ticketDataService; this.userDataService = userDataService; this.courseDataService = courseDataService; this.centresService = centresService; this.centresDataService = centresDataService; }
public FindYourCentreController( ICentresService centresService, IRegionDataService regionDataService, ISearchSortFilterPaginateService searchSortFilterPaginateService, IConfiguration configuration, IFeatureManager featureManager ) { this.centresService = centresService; this.regionDataService = regionDataService; this.searchSortFilterPaginateService = searchSortFilterPaginateService; this.configuration = configuration; this.featureManager = featureManager; }
public void Setup() { regionDataService = A.Fake <IRegionDataService>(); centresService = A.Fake <ICentresService>(); searchSortFilterPaginateService = A.Fake <ISearchSortFilterPaginateService>(); configuration = A.Fake <IConfiguration>(); featureManager = A.Fake <IFeatureManager>(); controller = new FindYourCentreController( centresService, regionDataService, searchSortFilterPaginateService, configuration, featureManager ); }
public void Setup() { supportTicketDataService = A.Fake <ISupportTicketDataService>(); userDataService = A.Fake <IUserDataService>(); centresDataService = A.Fake <ICentresDataService>(); centresService = A.Fake <ICentresService>(); courseDataService = A.Fake <ICourseDataService>(); centresDataService = A.Fake <ICentresDataService>(); dashboardInformationService = new DashboardInformationService( supportTicketDataService, userDataService, courseDataService, centresService, centresDataService ); }
public DashboardController( IUserDataService userDataService, ICentresDataService centresDataService, ICourseDataService courseDataService, ISupportTicketDataService ticketDataService, ICentresService centresService, ISystemNotificationsDataService systemNotificationsDataService ) { this.userDataService = userDataService; this.centresDataService = centresDataService; this.courseDataService = courseDataService; this.ticketDataService = ticketDataService; this.centresService = centresService; this.systemNotificationsDataService = systemNotificationsDataService; }
public void Setup() { centresDataService = A.Fake <ICentresDataService>(); clockService = A.Fake <IClockService>(); centresService = new CentresService(centresDataService, clockService); A.CallTo(() => clockService.UtcNow).Returns(new DateTime(2021, 1, 1)); A.CallTo(() => centresDataService.GetCentreRanks(A <DateTime> ._, A <int?> ._, 10, A <int> ._)).Returns( new[] { CentreTestHelper.GetCentreRank(1), CentreTestHelper.GetCentreRank(2), CentreTestHelper.GetCentreRank(3), CentreTestHelper.GetCentreRank(4), CentreTestHelper.GetCentreRank(5), CentreTestHelper.GetCentreRank(6), CentreTestHelper.GetCentreRank(7), CentreTestHelper.GetCentreRank(8), CentreTestHelper.GetCentreRank(9), CentreTestHelper.GetCentreRank(10), } ); }
public CentresController(ICentresService centresService) { this.centresService = centresService; }