Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
        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();
        }