mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
18 lines
466 B
C#
18 lines
466 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
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();
|
|
public Task<ExchangeRates> GetRatesAsync()
|
|
{
|
|
return Task.FromResult(ExchangeRates);
|
|
}
|
|
}
|
|
}
|