mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
20 lines
779 B
C#
20 lines
779 B
C#
|
using BTCPayServer.Abstractions.Custodians;
|
|||
|
using BTCPayServer.Abstractions.Models;
|
|||
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
|
|||
|
namespace BTCPayServer.Plugins.Custodians.FakeCustodian
|
|||
|
{
|
|||
|
public class FakeCustodianPlugin : BaseBTCPayServerPlugin
|
|||
|
{
|
|||
|
public override string Identifier { get; } = "BTCPayServer.Plugins.Custodians.Fake";
|
|||
|
public override string Name { get; } = "Custodian: Fake";
|
|||
|
public override string Description { get; } = "Adds a fake custodian for testing";
|
|||
|
|
|||
|
public override void Execute(IServiceCollection services)
|
|||
|
{
|
|||
|
services.AddSingleton<FakeCustodian>();
|
|||
|
services.AddSingleton<ICustodian, FakeCustodian>(provider => provider.GetRequiredService<FakeCustodian>());
|
|||
|
}
|
|||
|
}
|
|||
|
}
|