Example #1
0
 static void Start_App()
 {
     using (var fakeService = new FakeService())
         using (var httpClient = HttpClient(fakeService.StartApp(app => app.Run(context => Task.FromResult(context.Response.StatusCode = 200)))))
         {
             Expect.equal(httpClient.GetAsync("/foo").Result.StatusCode, HttpStatusCode.OK, "OK is returned");
         }
 }