-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
garfieldmoore edited this page Oct 17, 2014
·
26 revisions
Install the nuget in the visual studio package manager console;
install-package Boomerang
Now you've installed the package you can create a proxy in your tests;
<pre>
var proxy = Boomerang.Create(x =>
{
x.AtAddress("http://localhost:5100/");
});
</pre>
Now you're ready to register request/responses;
<pre>
proxy.Get("newtest").Returns("test 1", 201);
</pre>
Then start the proxy;
proxy.Start();
Currently GET, PUT, DELETE and POST are supported.
You can configure other requests using the request method;
proxy.Request("relative/address", "http verb").Returns("test 1", 201)