public void SetLocation(ResourceLocation location)
 {
     location.Set(new Uri("http://foo.com"));
     Location = location.Location;
 }
 protected ResourceResponseBase(HttpStatusCode httpStatusCode, IApiResource resource) : base(httpStatusCode)
 {
     var location = new ResourceLocation();
     resource.SetLocation(location);
     Headers.Location = location.Location;
 }