public CompaniesHouseDataImporter(ITestDataRepository testDataRepository, ILogger <CompaniesHouseDataImporter> logger, ICompaniesHouseApiClient client)
 {
     _testDataRepository = testDataRepository;
     _logger             = logger;
     _client             = client;
     _retryPolicy        = SetupRetryPolicy();
 }
Exemplo n.º 2
0
 public HomeService(IGlobalSettingRepository globalSettingRepository, ITestDataRepository testDataRepository, IControlRepository controlRepository)
 {
     this.GlobalSettingRepository = globalSettingRepository;
     this.TestDataRepository = testDataRepository;
     this.ControlRepository = controlRepository;
     this.AddDisposableObject(globalSettingRepository);
     this.AddDisposableObject(testDataRepository);
     this.AddDisposableObject(controlRepository);
 }
Exemplo n.º 3
0
 public HomeService(IGlobalSettingRepository globalSettingRepository, ITestDataRepository testDataRepository, IControlRepository controlRepository)
 {
     this.GlobalSettingRepository = globalSettingRepository;
     this.TestDataRepository      = testDataRepository;
     this.ControlRepository       = controlRepository;
     this.AddDisposableObject(globalSettingRepository);
     this.AddDisposableObject(testDataRepository);
     this.AddDisposableObject(controlRepository);
 }
Exemplo n.º 4
0
 protected virtual void Setup()
 {
     TestDataRepository = new TestDataRepositoryStub();
 }
Exemplo n.º 5
0
 public TestDataService(ITestDataRepository testDataRepository)
 {
     this.TestDataRepository = testDataRepository;
     this.AddDisposableObject(testDataRepository);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestDataController"/> class.
 ///  TestDataController
 /// </summary>
 /// <param name="testDataRepository"></param>
 /// <param name="calculationService"></param>
 public TestDataController(ITestDataRepository testDataRepository, ICalculationService calculationService)
 {
     _testDataRepository = testDataRepository ?? throw new ArgumentNullException(nameof(testDataRepository));
     _calculationService = calculationService ?? throw new ArgumentNullException(nameof(calculationService));
 }
Exemplo n.º 7
0
 public CalculationService(ITestDataRepository testDataRepository)
 {
     _testDataRepository = testDataRepository ?? throw new ArgumentNullException(nameof(testDataRepository));
 }
 public TestDataController(ITestDataRepository repo, IMapper mapper)
 {
     _repo   = repo;
     _mapper = mapper;
 }
Exemplo n.º 9
0
 public FunctionHelperIntegrationTest(TestDataFixture config, ITestOutputHelper output)
 {
     _testDataRepository = config.TestDataRepository;
     _output             = output;
 }
Exemplo n.º 10
0
 public TestDataService(ITestDataRepository testDataRepository)
 {
     _testDataRepository = testDataRepository;
 }
Exemplo n.º 11
0
        private CalculationService GetCalculationService(ITestDataRepository testDataRepository = null)
        {
            testDataRepository ??= new Mock <ITestDataRepository>().Object;

            return(new CalculationService(testDataRepository));
        }
Exemplo n.º 12
0
 public TestDataService(ITestDataRepository testDataRepository)
 {
     this.TestDataRepository = testDataRepository;
     this.AddDisposableObject(testDataRepository);
 }
Exemplo n.º 13
0
 public DefaultTestDataService(IConfigurationService configuration, ITestDataRepository repository)
 {
     this.configuration = configuration;
     this.repository    = repository;
 }
Exemplo n.º 14
0
 public UkrlpDataImporter(ITestDataRepository testDataRepository, ILogger <UkrlpDataImporter> logger)
 {
     _testDataRepository = testDataRepository;
     _logger             = logger;
 }
Exemplo n.º 15
0
 public TestData(ITestDataRepository repository)
 {
     Repository = repository;
 }
 public CharityDataImporter(ITestDataRepository testDataRepository, ILogger <CharityDataImporter> logger)
 {
     _testDataRepository = testDataRepository;
     _logger             = logger;
 }