public static SystemUri Define ( SchemeSegment scheme = null, HostSegment host = null, PathSegment path = null, QuerySegment query = null ) => new SystemUri(scheme, host, path, query);
public void SchemeSegment_AssertSegmentIsCorrect() { // Arrange var segement = new SchemeSegment(); var context = new RewriteContext { HttpContext = new DefaultHttpContext() }; context.HttpContext.Request.Scheme = "http"; // Act var results = segement.Evaluate(context, null, null); // Assert Assert.Equal("http", results); }