Updated Using WireMock in UnitTests (markdown)

Stef Heyenrath
2018-08-06 20:08:32 +02:00
parent bddebe449c
commit 8026021752

@@ -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);
}