public void the_rewritten_uri_is_relative_to_the_app_base() { given_resource <Customer>("/customer/{id}"); given_request_uri("http://localhost/vdir/customer/1.xml"); given_context_applicationBase("http://localhost/vdir"); when_parsing(); ParsingResult.ShouldBeTrue(); ProcessedUri.ShouldBe(new Uri("http://localhost/vdir/customer/1")); when_applying(); Context.PipelineData.ResponseCodec.CodecType.ShouldBe(typeof(XmlCodec)); Context.Response.Entity.ContentType.ShouldBe(MediaType.Xml); }