Пример #1
0
        static async Task Main(string[] args)
        {
            var httpClient = new HttpClient();

            httpClient.BaseAddress = new Uri("http://localhost:60374");
            var apiClient = new WeatherForecastApiClient(httpClient);
            var useCase   = new PrintWeatherForecastUseCase(apiClient, new StandardOut());
            await useCase.Print(args[0]);

            Console.ReadLine();
        }
Пример #2
0
 public PrintWeatherForecastUseCase(WeatherForecastApiClient apiClient, IConsole console)
 {
     this.apiClient = apiClient;
     this.console   = console;
 }