Exemplo n.º 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");
 }
Exemplo n.º 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);
 }