Exemplo n.º 1
0
 public void Validate()
 {
     Contract.Assert(SKU.IsTrimmed());
     Contract.Assert(Name.IsTrimmed());
     Contract.Assert(Quantity >= 1);
     Contract.Assert(Price > 0.0);
     Contract.Assert(Shipping >= 0.0);
     Contract.Assert(Tax >= 0.0);
 }