public NationalSocietyReportService(INyssContext nyssContext, IUserService userService, IProjectService projectService, INationalSocietyService nationalSocietyService, INyssWebConfig config, IAuthorizationService authorizationService) { _nyssContext = nyssContext; _userService = userService; _projectService = projectService; _nationalSocietyService = nationalSocietyService; _config = config; _authorizationService = authorizationService; }
public NationalSocietyDashboardService( INationalSocietyService nationalSocietyService, INationalSocietyDashboardSummaryService nationalSocietyDashboardSummaryService, IReportsDashboardMapService reportsDashboardMapService, IReportsDashboardByVillageService reportsDashboardByVillageService) { _nationalSocietyService = nationalSocietyService; _nationalSocietyDashboardSummaryService = nationalSocietyDashboardSummaryService; _reportsDashboardMapService = reportsDashboardMapService; _reportsDashboardByVillageService = reportsDashboardByVillageService; }
public NationalSocietyServiceTests() { _nyssContextMock = Substitute.For <INyssContext>(); var loggerAdapterMock = Substitute.For <ILoggerAdapter>(); var authorizationService = Substitute.For <IAuthorizationService>(); authorizationService.GetCurrentUserName().Returns("yo"); _managerServiceMock = Substitute.For <IManagerService>(); _technicalAdvisorServiceMock = Substitute.For <ITechnicalAdvisorService>(); _smsGatewayServiceMock = Substitute.For <ISmsGatewayService>(); _nationalSocietyService = new NationalSocietyService(_nyssContextMock, Substitute.For <INationalSocietyAccessService>(), loggerAdapterMock, authorizationService, _managerServiceMock, _technicalAdvisorServiceMock, _smsGatewayServiceMock); _testData = new NationalSocietyServiceTestData(_nyssContextMock, _smsGatewayServiceMock); }
public NationalSocietyController(INationalSocietyService nationalSocietyService) { _nationalSocietyService = nationalSocietyService; }