Skip to content
garfieldmoore edited this page Oct 17, 2014 · 26 revisions

Wiki Contents


Quick start

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)
Clone this wiki locally