public void Test_get_logger_returns_logger()
        {
            // Arrange.
            var logger = WeatherConfig.GetLoggerConfiguration();

            // Act.
            // Assert.
            logger.Should().NotBeNull("the serilog system will return the valid logger.");
        }
        public void Test_get_logger_returns_valid_logger_type()
        {
            // Arrange.
            var logger = WeatherConfig.GetLoggerConfiguration();

            // Act.
            // Assert.
            logger.Should().BeOfType <Logger>("serilog returns the ILogger type.");
        }
        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 notify    = new WeatherNotifier(logger);
            var processor = new WeatherProcessor(reader, mapper, notify, hub, logger);

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

            return(_weatherComponent);
        }