public async Task TestGetOnRootOfExampleApiReturnsExpectedThing() { _mockProviderService.Given("I just hit controller root") .UponReceiving("A GET request at the root of the controller") .With(new ProviderServiceRequest { Method = HttpVerb.Get, Path = "/" }) .WillRespondWith(new ProviderServiceResponse { Status = 200, Headers = new Dictionary <string, object> { { "Content-Type", "text/plain; charset=utf-8" } }, Body = "Ahh OK" }); var consumer = new ExampleApiClient(); var result = await consumer.GetString(_mockProviderServiceBaseUri); Assert.AreEqual("Ahh OK", result); _mockProviderService.VerifyInteractions(); //NOTE: Verifies that interactions registered on the mock provider are called at least once }