public WeatherForecastServiceTests()
        {
            var httpClient = new HttpClient(GetHttpMessageHandler());
            var logger     = GetMockLogger();

            _sut = new WeatherForecastService(logger, httpClient);
        }
コード例 #2
0
 public WeatherForecastController(IWheaterForecastService wheaterForecastService) =>
 (_weatherForecastService) = (wheaterForecastService);