Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added regression test to be sure that ValidationFeature can be called…

… twice without problem
  • Loading branch information...
commit 417bc357baf3b7fae855c605841cb7896b559c7f 1 parent 2b06981
@desunit desunit authored
View
8 tests/ServiceStack.WebHost.Endpoints.Tests/CustomerServiceValidationTests.cs
@@ -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()

0 comments on commit 417bc35

Please sign in to comment.
Something went wrong with that request. Please try again.