Exemplo n.º 1
0
        public IComponent CreateComponent(IMessageHub hub, string fileName)
        {
            var file      = FootballConfig.GetFileSystem();
            var logger    = FootballConfig.GetLoggerConfiguration();
            var reader    = new FootballReader(file, logger);
            var mapper    = new FootballMapper(logger);
            var writer    = new FootballWriter(logger);
            var processor = new FootballProcessor(reader, mapper, writer, hub, logger);

            _footballComponent = new Types.FootballComponent(reader, mapper, writer, processor, fileName);

            return(_footballComponent);
        }
Exemplo n.º 2
0
 public FootballWriterTests()
 {
     _logger         = Substitute.For <ILogger>();
     _footballWriter = new FootballWriter(_logger);
 }