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; }
public FileReaderTests() { this.businessProcessor = MockRepository.GenerateMock <IBusinessProcessor>(); this.reader = MockRepository.GeneratePartialMock <FileReader>(this.businessProcessor); }