Skip to content

andyedinborough/FakeHost

 
 

Repository files navigation

Integration testing ASP.NET MVC is messy. FakeHost aims to help.

The code has been forked and updated to make setup simpler:

[TestMethod]
public void TestLogin() {
  
  using (var browser = new Browser()) {
    var form = browser
      .Get("/account/logon")
      .GetForms()[0];


    form["email"] = "[email protected]";
    form["password"]  = "sUp3r1337&hX0rPr0of";

    var result = browser.Post("/account/logon", form);
      
    Assert.AreEqual(302, result.StatusCode);
  }

}

About

Functional controller testing for ASP.Net MVC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 77.1%
  • XSLT 18.9%
  • CSS 2.1%
  • PowerShell 1.7%
  • Classic ASP 0.2%