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);
        }
Exemple #3
0
        public void Teardown()
        {
            _archiveService      = null;
            _failoverDataService = null;
            _liveDataService     = null;
            _failoverService     = null;

            _sut = null;
        }
Exemple #4
0
        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);
        }
Exemple #5
0
 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;
 }
Exemple #8
0
 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;
 }