Skip to content

Commit fe87a7f

Browse files
committed
Updated README.md to have information about IAndTestBuilder (#13)
1 parent 32cc201 commit fe87a7f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ MyWebApi
109109
.Calling(c => c.SomeAction(requestModel))
110110
.ShouldHaveInvalidModelState();
111111

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+
112120
// tests whether model state error exists (or does not exist) for specific key
113121
// * not recommended because of magic string
114122
MyWebApi

0 commit comments

Comments
 (0)