public void Setup()
 {
     _configuration = Substitute.For <IConfiguration>();
     _summaryRecord = Substitute.For <ISummaryRecord>();
     _configuration.GetValue <string>("OutputFilesDirectory")
     .Returns("D:\\WTWDIP\\ClaimsReserving\\ClaimsReserving\\OutputFiles");
     _target = new CsvOutput(_configuration, _summaryRecord);
 }
Exemplo n.º 2
0
 public void Setup()
 {
     _configuration              = Substitute.For <IConfiguration>();
     _configurationSection       = Substitute.For <IConfigurationSection>();
     _configurationSection.Value = "D:\\WTWDIP\\ClaimsReserving\\ClaimsReserving\\OutputFiles";
     _configuration.GetSection(Arg.Any <string>())
     .Returns(_configurationSection);
     _summaryRecord = Substitute.For <ISummaryRecord>();
     _target        = new CsvOutput(_configuration, _summaryRecord);
 }
 public CsvOutput(IConfiguration configuration, ISummaryRecord summaryRecord)
 {
     OutputFilesPath = configuration.GetValue <string>("OutputFilesDirectory");
     SummaryRecord   = summaryRecord;
 }