Пример #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(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);
 }