예제 #1
0
        public void TestSetSourceShouldSetSetSource()
        {
            var source = new CsvFileSource();

            _repository.SetSource <CsvFileSource>(source);
            Assert.That(_sources[source.GetType()], Is.EqualTo(source));
        }
예제 #2
0
        public void GivenACSVFileSource()
        {
            var source = new CsvFileSource();

            _appContext.CsvFileSource = source;
            _appContext.DataContext.Sources.Add(source.GetType(), source);
        }
예제 #3
0
        public void TestGetSourceShouldReturnCsvFileSource()
        {
            var source = new CsvFileSource();

            _sources.Add(source.GetType(), source);
            var result = _repository.GetSource <CsvFileSource>();

            Assert.That(result, Is.EqualTo(source));
        }