public void PostToStaticLocationNavigatesToSpecificLocationTest()
{
var location = new Uri("http://www.somwhere.com");
var expected = new TextPageWrapper();
IList<PostEntry> parameters = new List<PostEntry>();
var target = Substitute.For<IBrowser>();
target.Execute<TextPageWrapper>(
Arg.Is<HttpRequestMessage>(x => x.RequestUri == location && x.Method == HttpMethod.Post),
HttpStatusCode.OK,
Arg.Any<IPageFactory>()).Returns(expected);
var actual = target.PostTo<TextPageWrapper>(parameters, location);
actual.Should().BeSameAs(expected);
}