Esempio n. 1
0
 public void ItCanAddARedirect()
 {
     var responseBuilder = new ResponseBuilder(Constants.RequestWithFile);
     responseBuilder.AddRedirect("/");
     var response = responseBuilder.Build();
     response.StatusCode.ShouldEqual(302);
     response.Headers.Keys.ShouldContain(Headers.Location);
 }
Esempio n. 2
0
 public Response Construct(Response response, string resource)
 {
     var responseBuilder = new ResponseBuilder(response);
     responseBuilder.AddRedirect(resource);
     return responseBuilder.Build();
 }