public virtual HttpRequest Create(PutDatabaseRequest request) { Ensure.That(request, "request").IsNotNull(); return new HttpRequest(HttpMethod.Put, GenerateRelativeUrl(request)) .SetRequestTypeHeader(request.GetType()); }
protected virtual string GenerateRelativeUrl(PutDatabaseRequest request) { return "/"; }
protected override string GenerateRelativeUrl(PutDatabaseRequest request) { return string.Format("/{0}", new UrlSegment(request.DbName)); }