Example #1
0
 public void QuantityUnitPriceAmount_ShouldBeGreaterThen0(decimal quantity, decimal unitPrice, decimal amount)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => Estimation.New("id", "specNumber", "Description", "unit", quantity, unitPrice, amount, new CompanyId(1)));
 }
Example #2
0
        public void New_ReturnWithIdEqual0()
        {
            var estimation = Estimation.New("id", "specNumber", "Description", "unit", 1, 1, 1, new CompanyId(1));

            Assert.That(estimation.Id, Is.Zero, $"Id should be 0, but is {estimation.Id}");
        }