public void Setup()
        {
            _textReaderFactory = Substitute.For <ITextReaderFactory>();
            _textReaderFactory.FromFile(null).ReturnsForAnyArgs(ArticleTestRepository.Valid.DefaultArticle.Text);

            _sut = new ArticleParser(_textReaderFactory);
        }
 public MicroserviceDefinitionBuilderTests()
 {
     _logger            = Substitute.For <IAlleyLogger>();
     _descriptor        = Substitute.For <IMicroserviceDescriptor>();
     _textReaderFactory = Substitute.For <ITextReaderFactory>();
     _sut = new MicroserviceDefinitionBuilder(_descriptor, _textReaderFactory, _logger);
 }
Exemplo n.º 3
0
 public MicroserviceDefinitionBuilder(
     IMicroserviceDescriptor microserviceDescriptor,
     ITextReaderFactory textReaderFactory,
     IAlleyLogger logger)
 {
     _microserviceDescriptor = microserviceDescriptor;
     _textReaderFactory      = textReaderFactory;
     _logger = logger;
 }
Exemplo n.º 4
0
 public ArticleParser(ITextReaderFactory textReaderFactory)
 {
     _textReaderFactory = textReaderFactory;
 }
Exemplo n.º 5
0
 public ArticleParser(ITextReaderFactory textReaderFactory)
 {
     _textReaderFactory = textReaderFactory;
 }
Exemplo n.º 6
0
 public CSVBandsReader(ITextReaderFactory textReader, string columnSeparator)
 {
     _textReader      = textReader.GetTextReader();
     _columnSeparator = new[] { columnSeparator };
 }
        public void Setup()
        {
            _textReaderFactory = Substitute.For<ITextReaderFactory>();
            _textReaderFactory.FromFile(null).ReturnsForAnyArgs(ArticleTestRepository.Valid.DefaultArticle.Text);

            _sut = new ArticleParser(_textReaderFactory);
        }