コード例 #1
0
 public FileReader(IBusinessProcessor businessProcessor)
 {
     //FileName - FileHelper class mapping. This can also be pulled from Database or any external configuration
     this.fileTypeMapperDictionary.Add("Customer", "CSVProcessorDomain.CustomerDataModel");
     this.fileTypeMapperDictionary.Add("Order", "CSVProcessorDomain.OrderDataModel");
     this.businessProcessor = businessProcessor;
 }
コード例 #2
0
 public FileReaderTests()
 {
     this.businessProcessor = MockRepository.GenerateMock <IBusinessProcessor>();
     this.reader            = MockRepository.GeneratePartialMock <FileReader>(this.businessProcessor);
 }