public void SetUp() { _mockedFailoverAppSettings = new Mock<IFailoverAppSettings>(); _mockedFailoverRepository = new Mock<IFailoverRepository>(); _sut = new FailoverService(_mockedFailoverRepository.Object, _mockedFailoverAppSettings.Object); }
public void Setup() { _configuration = A.Fake <IConfiguration>(); A.CallTo(() => _configuration.RecentFailoverPeriod).Returns(_recentPeriod); A.CallTo(() => _configuration.FailoverRecordsCountThreshold).Returns(_failoverThreshold); _failoverRepository = A.Fake <IFailoverRepository>(); _sut = new FailoverService(_failoverRepository, _configuration); }
public void Teardown() { _archiveService = null; _failoverDataService = null; _liveDataService = null; _failoverService = null; _sut = null; }
public void Setup() { _archiveService = A.Fake <ILearnerArchiveService>(); _failoverDataService = A.Fake <ILearnerDataService>(); _liveDataService = A.Fake <ILearnerDataService>(); _failoverService = A.Fake <IFailoverService>(); _sut = new LearnerService(_archiveService, _failoverDataService, _liveDataService, _failoverService); }
public LearnerService( ILearnerArchiveService archiveService , ILearnerDataService failoverDataService , ILearnerDataService liveDataService , IFailoverService failoverService ) { _archiveService = archiveService; _failoverDataService = failoverDataService; _liveDataService = liveDataService; _failoverService = failoverService; }
public CustomerDataService(IDataAccessResponseFactory<CustomerResponse> dataAccessCustomerResponseFactory, IFailoverService failoverService) { _dataAccessCustomerResponseFactory = dataAccessCustomerResponseFactory; _failoverService = failoverService; }
public void Teardown() { _configuration = null; _failoverRepository = null; _sut = null; }
public StudentService(IFactoryStudentDataAccess factoryStudentDataAccess, IFailoverService failoverService, IArchivedDataService archivedDataService) { this.factoryStudentDataAccess = factoryStudentDataAccess; this.failoverService = failoverService; this.archivedDataService = archivedDataService; }
public CustomerService(IArchivedDataService archivedDataService, IFailoverService failoverService, IFactoryCustomerDataAccess factoryCustomerDataAccess) { _archivedDataService = archivedDataService; _failoverService = failoverService; _factoryCustomerDataAccess = factoryCustomerDataAccess; }