Skip to content

Commit

Permalink
added regression test to be sure that ValidationFeature can be called…
Browse files Browse the repository at this point in the history
… twice without problem
  • Loading branch information
desunit committed Mar 28, 2013
1 parent 2b06981 commit 417bc35
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -195,6 +195,14 @@ public void SetUp()
Postcode = "11215",
};
}

[Test]
public void ValidationFeature_add_request_filter_once()
{
var old = appHost.RequestFilters.Count;
appHost.LoadPlugin(new ValidationFeature());
Assert.That(old, Is.EqualTo(appHost.RequestFilters.Count));
}

[Test]
public void Validates_ValidRequest_request_on_Post()
Expand Down

0 comments on commit 417bc35

Please sign in to comment.