Exemple #1
0
 public DashboardController(
     IDashboardInformationService dashboardInformationService,
     ISystemNotificationsDataService systemNotificationsDataService
     )
 {
     this.dashboardInformationService    = dashboardInformationService;
     this.systemNotificationsDataService = systemNotificationsDataService;
 }
Exemple #2
0
 public void Setup()
 {
     dashboardInformationService    = A.Fake <IDashboardInformationService>();
     systemNotificationsDataService = A.Fake <ISystemNotificationsDataService>();
     dashboardController            = new DashboardController(
         dashboardInformationService,
         systemNotificationsDataService
         ).WithMockHttpContext(httpRequest, response: httpResponse)
                                      .WithMockUser(true)
                                      .WithMockServices()
                                      .WithMockTempData();
 }
 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
         );
 }