Example #1
0
 public void ItCanReturnQuoteForm()
 {
     var mRequest = new MockRequest() {Method = "GET", Resource = "/", Route="GET /"};
     var route = new Route("GET", "/", new QuoteFormResponse());
     var routes = new Router();
     routes.AddRoute(route);
     var responseString = routes.GetResponse(mRequest).ToString();
     var expectedResponseString = (new QuoteFormResponse()).Construct(mRequest).ToString();
     responseString.ShouldEqual(expectedResponseString);
 }