private static async Task ShowLocalPricesCurrentProducts(string asseccKey) { var service = new ProductReportService(new Uri(NorthwindServiceUrl)); var countryCurrencyService = new CountryCurrencyService(); var currencyExchangeService = new CurrencyExchangeService(asseccKey); var report = new CurrentProductLocalPriceReport(service, currencyExchangeService, countryCurrencyService); await report.PrintReport(); }
private static async Task CurrentLocalPrices() { IProductReportService service = new ProductReportService(new Uri(NorthwindServiceUrl)); ICountryCurrencyService countryCurrencyService = new CountryCurrencyService(); ICurrencyExchangeService currencyExchangeService = new CurrencyExchangeService("5a383f8e25731418bc925cfc6d814087"); CurrentProductLocalPriceReport currentProductLocalPriceReport = new CurrentProductLocalPriceReport(service, currencyExchangeService, countryCurrencyService); await currentProductLocalPriceReport.PrintReport(); }
private static async Task ShowCurrentProductsLocalPrices() { var service = new ProductReportService(new Uri(NorthwindServiceUrl)); var report = new CurrentProductLocalPriceReport(service, new CurrencyExchangeService(AccessKey), new CountryCurrencyService()); await report.PrintReport(); }