Skip to content

Commit 5e07e0a

Browse files
committed
Updated consumer samples in README.
1 parent f351f51 commit 5e07e0a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,21 @@ _controller.WithCallTo(c => c.Index())
105105
.ShouldRedirectTo<SomeOtherController>(c => c.SomeAction());
106106

107107
_controller.WithCallTo(c => c.Index())
108-
.ShouldRenderFile("text/plain");
108+
.ShouldRenderAnyFile("content/type");
109+
110+
_controller.WithCallTo(c => c.Index())
111+
.ShouldRenderFileContents("text");
112+
113+
_controller.WithCallTo(c => c.Index())
114+
.ShouldReturnContent("expected content");
109115

110116
_controller.WithCallTo(c => c.Index())
111117
.ShouldGiveHttpStatus(404);
112118

113119
_controller.WithCallTo(c => c.Index()).ShouldReturnJson(data =>
114-
{
115-
Assert.That(data.SomeProperty, Is.EqualTo("SomeValue");
116-
}
117-
);
120+
{
121+
Assert.That(data.SomeProperty, Is.EqualTo("SomeValue");
122+
});
118123
```
119124

120125
Any questions, comments or additions?

0 commit comments

Comments
 (0)