2018-05-03 03:32:42 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
2019-03-05 17:29:52 +09:00
|
|
|
|
using System.Threading;
|
2018-05-03 03:32:42 +09:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using BTCPayServer.Rating;
|
|
|
|
|
using BTCPayServer.Services.Rates;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Tests.Mocks
|
|
|
|
|
{
|
|
|
|
|
public class MockRateProvider : IRateProvider
|
|
|
|
|
{
|
|
|
|
|
public ExchangeRates ExchangeRates { get; set; } = new ExchangeRates();
|
2019-03-05 17:29:52 +09:00
|
|
|
|
public Task<ExchangeRates> GetRatesAsync(CancellationToken cancellationToken)
|
2018-05-03 03:32:42 +09:00
|
|
|
|
{
|
|
|
|
|
return Task.FromResult(ExchangeRates);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|