From 8026021752f7439a4e364b62c680f843abc10b31 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Mon, 6 Aug 2018 20:08:32 +0200 Subject: [PATCH] Updated Using WireMock in UnitTests (markdown) --- Using-WireMock-in-UnitTests.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Using-WireMock-in-UnitTests.md b/Using-WireMock-in-UnitTests.md index 20f9e9e..3059bae 100644 --- a/Using-WireMock-in-UnitTests.md +++ b/Using-WireMock-in-UnitTests.md @@ -14,7 +14,7 @@ public void StartMockServer() [Test] public async void Should_respond_to_request() { - // given + // Assign _sut = new SomeComponentDoingHttpCalls(); _server @@ -25,10 +25,10 @@ public async void Should_respond_to_request() .WithBody(@"{ ""msg"": ""Hello world!"" }") ); - // when + // Act var response = _sut.DoSomething(); - // then + // Assert Check.That(response).IsEqualTo(EXPECTED_RESULT); }