diff --git a/phronCare.UIBlazor/Pages/Sales/Quotes/QuoteCreate.razor b/phronCare.UIBlazor/Pages/Sales/Quotes/QuoteCreate.razor index 11d92d8..56ef11a 100644 --- a/phronCare.UIBlazor/Pages/Sales/Quotes/QuoteCreate.razor +++ b/phronCare.UIBlazor/Pages/Sales/Quotes/QuoteCreate.razor @@ -2,9 +2,9 @@ @using System.Globalization; @using System.Net.Http.Json @using Blazored.Typeahead -@using Core.Interfaces @using Services.Lookups @using phronCare.UIBlazor.Pages.Sales.Modals +@using phronCare.UIBlazor.Services.Integrations @using phronCare.UIBlazor.Services.Sales.Quotes @inject ISalesLookupService SalesLookupService @@ -12,7 +12,7 @@ @inject IToastService toastService @inject NavigationManager Navigation @inject IModalService Modal -@inject IExchangeRateDom ExchangeRateService +@inject IExchangeRateService ExchangeRateService
diff --git a/phronCare.UIBlazor/Program.cs b/phronCare.UIBlazor/Program.cs index 22cae22..f259dd2 100644 --- a/phronCare.UIBlazor/Program.cs +++ b/phronCare.UIBlazor/Program.cs @@ -54,6 +54,8 @@ await builder.Build().RunAsync(); static void InjectDependencies(WebAssemblyHostBuilder builder) { builder.Services.AddScoped(); + builder.Services.AddScoped(); + builder.Services.AddScoped(); builder.Services.AddScoped(); diff --git a/phronCare.UIBlazor/Services/Integrations/ExchangeRateService.cs b/phronCare.UIBlazor/Services/Integrations/ExchangeRateService.cs index b370c82..92f2f95 100644 --- a/phronCare.UIBlazor/Services/Integrations/ExchangeRateService.cs +++ b/phronCare.UIBlazor/Services/Integrations/ExchangeRateService.cs @@ -4,7 +4,7 @@ using System.Net.Http.Json; namespace phronCare.UIBlazor.Services.Integrations { - public class ExchangeRateService + public class ExchangeRateService: IExchangeRateService { private readonly HttpClient _http; diff --git a/phronCare.UIBlazor/Services/Integrations/IExchangeRateService.cs b/phronCare.UIBlazor/Services/Integrations/IExchangeRateService.cs new file mode 100644 index 0000000..5312d0b --- /dev/null +++ b/phronCare.UIBlazor/Services/Integrations/IExchangeRateService.cs @@ -0,0 +1,10 @@ +using Domain.Entities; + +namespace phronCare.UIBlazor.Services.Integrations +{ + public interface IExchangeRateService + { + Task GetByDateAsync(DateOnly date); + Task GetYesterdayRateAsync(); + } +}