1
0

Method name fix

This commit is contained in:
Sergey Chebotar 2023-06-09 14:34:51 +03:00
parent c96ac65990
commit fd63d004f5
3 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ public static class ExcelFunctions
if (ExcelAsyncUtil.Run(nameof(ExchangeRate), dateField, delegate
{
return currencyClient.GetCurrencyCourse(date)
return currencyClient.GetExchangeRate(date)
.GetAwaiter()
.GetResult() ?? -1m;
}) is not decimal requestResult)

View File

@ -14,7 +14,7 @@ public class CurrencyClient : ICurrencyClient
_httpClient = httpClient;
}
public async Task<decimal?> GetCurrencyCourse(DateTime date)
public async Task<decimal?> GetExchangeRate(DateTime date)
{
string request = $"{_requestAddress}{date.Date:dd/MM/yyyy}";

View File

@ -2,5 +2,5 @@ namespace ExcelAddIn.Services;
public interface ICurrencyClient
{
public Task<decimal?> GetCurrencyCourse(DateTime date);
public Task<decimal?> GetExchangeRate(DateTime date);
}