public NationalSocietyServiceTestData(INyssContext nyssContextMock, ISmsGatewayService smsGatewayServiceMock) { _smsGatewayServiceMock = smsGatewayServiceMock; _testCaseDataProvider = new TestCaseDataProvider(nyssContextMock); BasicData = new BasicNationalSocietyServiceTestData(nyssContextMock, _nationalSocietyNumerator); }
public SmsGatewayServiceTests() { _nyssContextMock = Substitute.For <INyssContext>(); var loggerAdapterMock = Substitute.For <ILoggerAdapter>(); var config = Substitute.For <INyssWebConfig>(); _smsGatewayBlobProviderMock = Substitute.For <ISmsGatewayBlobProvider>(); _smsGatewayService = new SmsGatewayService(_nyssContextMock, loggerAdapterMock, _smsGatewayBlobProviderMock); }
public NationalSocietyService( INyssContext context, INationalSocietyAccessService nationalSocietyAccessService, ILoggerAdapter loggerAdapter, IAuthorizationService authorizationService, IManagerService managerService, ITechnicalAdvisorService technicalAdvisorService, ISmsGatewayService smsGatewayService) { _nyssContext = context; _nationalSocietyAccessService = nationalSocietyAccessService; _loggerAdapter = loggerAdapter; _authorizationService = authorizationService; _managerService = managerService; _technicalAdvisorService = technicalAdvisorService; _smsGatewayService = smsGatewayService; }
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 SmsGatewayController(ISmsGatewayService smsGatewayService) { _smsGatewayService = smsGatewayService; }