btcpayserver/BTCPayServer.Tests/Mocks/UrlHelperMock.cs

39 lines
753 B
C#
Raw Normal View History

2017-09-13 15:47:34 +09:00
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";
}
}
}