public void PostToStaticWithStatusNavigatesToPageLocationTest()
{
IList<PostEntry> parameters = new List<PostEntry>();
var expected = new TextPageWrapper();
var target = Substitute.For<IBrowser>();
target.Execute<TextPageWrapper>(
Arg.Is<HttpRequestMessage>(x => x.RequestUri == expected.TargetLocation && x.Method == HttpMethod.Post),
HttpStatusCode.NotFound,
Arg.Any<IPageFactory>()).Returns(expected);
var actual = target.PostTo<TextPageWrapper>(parameters, HttpStatusCode.NotFound);
actual.Should().BeSameAs(expected);
}