btcpayserver/BTCPayServer.Tests/Mocks/UrlHelperMock.cs
NicolasDorier b5c6ed3860 Init
2017-09-13 15:55:16 +09:00

38 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";
}
}
}