Beispiel #1
0
 public void ShouldBe(Order other)
 {
     Id.ShouldBe(other.Id);
     PersonId.ShouldBe(other.PersonId);
     PoNumber.ShouldBe(other.PoNumber);
     Status.ShouldBe(other.Status);
     CreatedOn.ShouldBe(other.CreatedOn);
     CreatedBy.ShouldBe(other.CreatedBy);
 }
Beispiel #2
0
 public void ShouldNotBe(Order other, bool sameIds)
 {
     if (sameIds)
     {
         Id.ShouldBe(other.Id);
         PersonId.ShouldBe(other.PersonId);
     }
     else
     {
         Id.ShouldNotBe(other.Id);
         PersonId.ShouldNotBe(other.PersonId);
     }
     PoNumber.ShouldNotBe(other.PoNumber);
     Status.ShouldNotBe(other.Status);
     CreatedOn.ShouldNotBe(other.CreatedOn);
     CreatedBy.ShouldNotBe(other.CreatedBy);
 }