static DummyResponse() { DummyLink = new ExampleLink {ContentType = "application/xml", Rel = "re-value", Uri = "http://localhost/1"}; DummyForm = new ExampleForm {Id = "form-id", ContentType = "application/xml", Method = "post", Uri = "http://localhost/form"}; DummyEntityBody = new ExampleEntityBody {Id = 5, Form = DummyForm, Link = DummyLink}; }
public bool Equals(ExampleEntityBody other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other.Id == Id && Equals(other.Link, Link) && Equals(other.Form, Form); }