コード例 #1
0
 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};
 }
コード例 #2
0
 public bool Equals(ExampleLink other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.Rel, Rel) && Equals(other.Uri, Uri) && Equals(other.ContentType, ContentType);
 }