コード例 #1
0
        public void Should_add_location_header_to_the_message_when_response_contains_a_api_resource()
        {
            var uri = new Uri("http://foobar.com");

            var response = new TemporaryRedirectResponse(uri);

            AssertExpectedStatus(response);
            response.Headers.Location.ShouldEqual(uri);
        }
コード例 #2
0
        public void Should_return_an_http_response_message_with_expected_status()
        {
            var response = new TemporaryRedirectResponse();

            AssertExpectedStatus(response);
        }