You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
351 B
C#
15 lines
351 B
C#
using Microsoft.AspNetCore.Http;
|
|
using Shouldly;
|
|
using Xunit;
|
|
|
|
namespace NPin.Test.Demo;
|
|
|
|
public class HttpUser_Test : NPinTestWebBase
|
|
{
|
|
[Fact]
|
|
public void Http_Test()
|
|
{
|
|
var httpContext = GetRequiredService<IHttpContextAccessor>();
|
|
httpContext.HttpContext.Request.Path.ToString().ShouldBe("/test");
|
|
}
|
|
} |