public void SetUp() { _csvParserMock = MockRepository.GenerateMock <IFileParser <List <string[]> > >(); _validatorMock = MockRepository.GenerateMock <IParsingResultValidator>(); _filePathProviderMock = MockRepository.GenerateMock <IDataFilePathProvider>(); _validationOperationResultLoggerMock = MockRepository.GenerateMock <IValidationOperationResultLogger>(); _csvDataProvider = new CsvDataProvider(_csvParserMock, _validatorMock, _filePathProviderMock, _validationOperationResultLoggerMock); }
public CsvDataProvider( IFileParser <List <string[]> > csvParser, IParsingResultValidator validator, IDataFilePathProvider filePathProvider, IValidationOperationResultLogger validationOperationResultLogger) { _csvParser = csvParser ?? throw new ArgumentNullException(nameof(csvParser)); _validator = validator ?? throw new ArgumentNullException(nameof(validator)); _filePathProvider = filePathProvider ?? throw new ArgumentNullException(nameof(filePathProvider)); _validationOperationResultLogger = validationOperationResultLogger ?? throw new ArgumentNullException(nameof(validationOperationResultLogger)); }