Exemple #1
0
 public ClaimsController(ICsvLoader csvLoader, IDirectoryFinder directoryFinder, IConfiguration configuration,
                         ICsvOutput csvOutput, IFileValidator fileValidator, IRecordsPerProduct recordsPerProduct)
 {
     _directoryFinder   = directoryFinder;
     _csvLoader         = csvLoader;
     _csvOutput         = csvOutput;
     _fileValidator     = fileValidator;
     _recordsPerProduct = recordsPerProduct;
     _inputFilesPath    = configuration.GetValue <string>("InputFilesDirectory");
 }
Exemple #2
0
 public void Setup()
 {
     _csvLoader       = Substitute.For <ICsvLoader>();
     _csvOutput       = Substitute.For <ICsvOutput>();
     _directoryFinder = Substitute.For <IDirectoryFinder>();
     _configuration   = Substitute.For <IConfiguration>();
     _configuration.GetValue <string>("InputFilesDirectory")
     .Returns("D:\\WTWDIP\\ClaimsReserving\\ClaimsReserving\\InputFiles");
     _fileValidator     = Substitute.For <IFileValidator>();
     _recordsPerProduct = Substitute.For <IRecordsPerProduct>();
     _target            = new ClaimsController(_csvLoader, _directoryFinder, _configuration, _csvOutput, _fileValidator, _recordsPerProduct);
 }
 public void Setup()
 {
     _csvLoader = Substitute.For <ICsvLoader>();
     _csvOutput = Substitute.For <ICsvOutput>();
     _target    = new SuccessController(_csvLoader, _csvOutput);
 }
Exemple #4
0
 public SuccessController(ICsvLoader csvLoader, ICsvOutput csvOutput)
 {
     _csvLoader = csvLoader;
     _csvOutput = csvOutput;
 }