Ejemplo n.º 1
0
        public void testListInvoiceTotalUnits()
        {
            var Invoice = new InvoiceArray();

            var listInvoice = Invoice.retrieve();

            var result = Invoice.CalculateTotalUnits(listInvoice);

            Assert.AreEqual(result, 144);
        }
Ejemplo n.º 2
0
        public void testListInvoiceTotalAmountInvoice()
        {
            var invoice = new InvoiceArray();

            var listInvoice = invoice.retrieve();

            var result = invoice.CalculateTotalAmountInvoice(listInvoice);//irá retornar a soma de todos

            Assert.AreEqual(result, 8588.45m);
        }