Exemplo n.º 1
0
 public void ShouldBe(OrderLine other)
 {
     Id.ShouldBe(other.Id);
     OrderId.ShouldBe(other.OrderId);
     Quantity.ShouldBe(other.Quantity);
     SellPrice.ShouldBe(other.SellPrice);
 }
Exemplo n.º 2
0
 public void ShouldNotBe(OrderLine other, bool sameIds)
 {
     if (sameIds)
     {
         Id.ShouldBe(other.Id);
         OrderId.ShouldBe(other.OrderId);
     }
     else
     {
         Id.ShouldNotBe(other.Id);
         OrderId.ShouldNotBe(other.OrderId);
     }
     Quantity.ShouldNotBe(other.Quantity);
     SellPrice.ShouldNotBe(other.SellPrice);
 }