This tool mocks responses from HTTP API. It's useful to make unit tests of your component, just stub the external APIs with a proxy server:
IFakeServer MyFakeServer = new FakeHttpServer("http://localhost:3000/");MyFakeServer.ShouldRecived().Post("request body").Response("response body");The server replies once to a POST-request with the response "response body".
MyFakeServer.CheckAllReciverConditional();If the response has not been received then the exception would be raised using Assert.Fail("Some receiver conditionals are not met.") from Microsoft.VisualStudio.TestTools.UnitTesting.
To look at the actual incoming requests you can use GetReceiveHistory method:
string[] actualRequests = MyFakeServer.GetReceiveHistory();There're some useful options: