/// <summary> /// Initializes a new instance of the <see cref="AcmeHttpResponse{T}"/> class. /// </summary> /// <param name="location">The location.</param> /// <param name="resource">The resource.</param> /// <param name="links">The links.</param> /// <param name="error">The error.</param> public AcmeHttpResponse(Uri location, T resource, ILookup <string, Uri> links, AcmeError error) { Location = location; Resource = resource; Links = links; Error = error; }
public void CanGetSetProperties() { var model = new AcmeError(); model.VerifyGetterSetter(a => a.Detail, "error details"); model.VerifyGetterSetter(a => a.Status, HttpStatusCode.ExpectationFailed); model.VerifyGetterSetter(a => a.Type, "error type"); }
public void CanGetSetProperties() { var model = new AcmeError(); model.VerifyGetterSetter(a => a.Detail, "error details"); model.VerifyGetterSetter(a => a.Status, HttpStatusCode.ExpectationFailed); model.VerifyGetterSetter(a => a.Type, "error type"); model.VerifyGetterSetter(a => a.Subproblems, new AcmeError[1]); model.VerifyGetterSetter(a => a.Identifier, new Identifier { Type = IdentifierType.Dns, Value = "www.abc.com" }); }