public static void AssertIsEqual(ModelWithSequence actual, ModelWithSequence expected)
 {
     if (actual == null || expected == null)
     {
         Assert.That(actual == expected, Is.True);
         return;
     }
     Assert.That(actual.Id, Is.EqualTo(expected.Id));
     Assert.That(actual.Name, Is.EqualTo(expected.Name));
 }
 public bool Equals(ModelWithSequence other)
 {
     if (object.ReferenceEquals(null, other))
     {
         return(false);
     }
     if (object.ReferenceEquals(this, other))
     {
         return(true);
     }
     if (other.Id == this.Id)
     {
         return(object.Equals(other.Name, this.Name));
     }
     return(false);
 }