Пример #1
0
        public IComponent CreateComponent(IMessageHub hub, string fileName)
        {
            var file      = WeatherConfig.GetFileSystem();
            var logger    = WeatherConfig.GetLoggerConfiguration();
            var reader    = new WeatherReader(file, logger);
            var mapper    = new WeatherMapper(logger);
            var writer    = new WeatherWriter(logger);
            var processor = new WeatherProcessor(reader, mapper, writer, hub, logger);

            _weatherComponent = new Types.WeatherComponent(reader, mapper, writer, processor, fileName);

            return(_weatherComponent);
        }
Пример #2
0
 public WeatherWriterTests()
 {
     _logger        = Substitute.For <ILogger>();
     _weatherWriter = new WeatherWriter(_logger);
 }