mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-04 09:58:13 +01:00
39 lines
753 B
C#
39 lines
753 B
C#
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
using Microsoft.AspNetCore.Mvc.Routing;
|
|||
|
|
|||
|
namespace BTCPayServer.Tests.Mocks
|
|||
|
{
|
|||
|
public class UrlHelperMock : IUrlHelper
|
|||
|
{
|
|||
|
public ActionContext ActionContext => throw new NotImplementedException();
|
|||
|
|
|||
|
public string Action(UrlActionContext actionContext)
|
|||
|
{
|
|||
|
return "http://127.0.0.1/mock";
|
|||
|
}
|
|||
|
|
|||
|
public string Content(string contentPath)
|
|||
|
{
|
|||
|
return "http://127.0.0.1/mock";
|
|||
|
}
|
|||
|
|
|||
|
public bool IsLocalUrl(string url)
|
|||
|
{
|
|||
|
return false;
|
|||
|
}
|
|||
|
|
|||
|
public string Link(string routeName, object values)
|
|||
|
{
|
|||
|
return "http://127.0.0.1/mock";
|
|||
|
}
|
|||
|
|
|||
|
public string RouteUrl(UrlRouteContext routeContext)
|
|||
|
{
|
|||
|
return "http://127.0.0.1/mock";
|
|||
|
}
|
|||
|
}
|
|||
|
}
|