using Nop.Core.Domain.Customers;
using Nop.Services.Authentication.MultiFactor;
using Nop.Services.Plugins;
namespace Mango.Sandbox.EndPoints.Services;
///
/// Null implementation of IMultiFactorAuthenticationPluginManager for SANDBOX
///
public class NullMultiFactorAuthenticationPluginManager : IMultiFactorAuthenticationPluginManager
{
public Task LoadPluginBySystemNameAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult(null);
public Task> LoadAllPluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult>(new List());
public Task> LoadActivePluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult>(new List());
public Task> LoadActivePluginsAsync(List systemNames, Customer? customer = null, int storeId = 0)
=> Task.FromResult>(new List());
public Task HasActivePluginsAsync(Customer? customer = null, int storeId = 0)
=> Task.FromResult(false);
public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin) => false;
public bool IsPluginActive(IMultiFactorAuthenticationMethod plugin, List systemNames) => false;
public Task IsPluginActiveAsync(string systemName, Customer? customer = null, int storeId = 0)
=> Task.FromResult(false);
public Task GetPluginLogoUrlAsync(IMultiFactorAuthenticationMethod plugin)
=> Task.FromResult(string.Empty);
}