Exemplo n.º 1
0
        public void PragmaticallyCombinedTestingAllVatOperationsForWithVat()
        {
            var price = Price.CreateSimplePrice(1000, true, 10m, null);

            Assert.AreEqual(1000, price.ValueInCents());
            var vatPrice = price.WithVat;

            Assert.AreEqual(1000, vatPrice.ValueInCents);
            vatPrice = price.WithoutVat;
            Assert.AreEqual(909, vatPrice.ValueInCents);
            vatPrice = price.Vat;
            Assert.AreEqual(91, vatPrice.ValueInCents);
        }