We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32cc201 commit fe87a7fCopy full SHA for fe87a7f
README.md
@@ -109,6 +109,14 @@ MyWebApi
109
.Calling(c => c.SomeAction(requestModel))
110
.ShouldHaveInvalidModelState();
111
112
+// tests whether model state is valid and returns some action result
113
+MyWebApi
114
+ .Controller<WebApiController>()
115
+ .Calling(c => c.SomeAction(requestModel))
116
+ .ShouldHaveInvalidModelState()
117
+ .And()
118
+ .ShouldReturnOk();;
119
+
120
// tests whether model state error exists (or does not exist) for specific key
121
// * not recommended because of magic string
122
MyWebApi
0 commit comments