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); }
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); }