public TransactionReaderFactory( IXmlTransactionReader xmlReader, ICsvTransactionReader csvReader) { _xmlReader = xmlReader; _csvReader = csvReader; }
public TransactionService(ITransactionRepository transactionRepository, IFileValidator fileValidator, IXmlTransactionReader xmlTransactionReader, ICsvTransactionReader csvTransactionReader, IXmlValidator xmlValidator, ICsvValidator csvValidator) { this.transactionRepository = transactionRepository; this.fileValidator = fileValidator; this.xmlTransactionReader = xmlTransactionReader; this.csvTransactionReader = csvTransactionReader; this.xmlValidator = xmlValidator; this.csvValidator = csvValidator; }
public CsvTransactionReaderTests() { _validator = new Mock <ICsvTransactionValidator>(); _reader = new CsvTransactionReader(_validator.Object); _fileDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Reader", "Files", "Csv"); }