public virtual HttpRequest Create(CompactDatabaseRequest request)
        {
            Ensure.That(request, "request").IsNotNull();

            return new HttpRequest(HttpMethod.Post, GenerateRelativeUrl(request))
                .SetRequestTypeHeader(request.GetType())
                .SetJsonContent();
        }
 protected virtual string GenerateRelativeUrl(CompactDatabaseRequest request)
 {
     return "/_compact";
 }
 protected override string GenerateRelativeUrl(CompactDatabaseRequest request)
 {
     return string.Format("/{0}/_compact", new UrlSegment(request.DbName));
 }