public void TestSetSourceShouldSetSetSource() { var source = new CsvFileSource(); _repository.SetSource <CsvFileSource>(source); Assert.That(_sources[source.GetType()], Is.EqualTo(source)); }
public void GivenACSVFileSource() { var source = new CsvFileSource(); _appContext.CsvFileSource = source; _appContext.DataContext.Sources.Add(source.GetType(), source); }
public void TestGetSourceShouldReturnCsvFileSource() { var source = new CsvFileSource(); _sources.Add(source.GetType(), source); var result = _repository.GetSource <CsvFileSource>(); Assert.That(result, Is.EqualTo(source)); }