Example #1
0
        public void CalculateTotalAmountInvoicedTest()
        {
            var invoiceList = _invoiceRepo.Retrieve();

            var actual = _invoiceRepo.CalculateTotalAmountInvoiced(invoiceList);

            Assert.AreEqual(1333.14M, actual);
        }
        public void CalculateTotalAmountInvoicedTest()
        {
            var repo        = new InvoiceRepository();
            var invoiceList = repo.Retrieve();

            var actual = repo.CalculateTotalAmountInvoiced(invoiceList);

            Assert.AreEqual(1333.14m, actual);
        }
Example #3
0
        public void CalculateTotalAmountInvoicedTest()
        {
            // Arrange
            InvoiceRepository repository = new InvoiceRepository();
            var invoiceList = repository.Retrive();

            // Act
            var actual = repository.CalculateTotalAmountInvoiced(invoiceList);

            // Assert
            Assert.AreEqual(1355.640M, actual);
        }
        public void CalculateTotalAmountInvoicedTest()
        {
            // Arrange
            InvoiceRepository repository = new InvoiceRepository();
            var invoiceList = repository.Retrieve();

            // Act
            var actual = repository.CalculateTotalAmountInvoiced(invoiceList);

            // Assert
            Assert.AreEqual(1333.14M, actual);
        }
        public void CalculateTotalAmountInvoicedTest()
        {
            //Arrange
            var invoiceRepo = new InvoiceRepository();
            var invoiceList = invoiceRepo.Retrieve();

            //Act
            var result = invoiceRepo.CalculateTotalAmountInvoiced(invoiceList);

            TestContext.WriteLine(result.ToString());
            //Assert
            Assert.IsNotNull(result);
        }
        public void CalculateTotalInvoicedAmount()
        {
            //Arrange
            var invoiceRepository = new InvoiceRepository();
            var invoiceList       = invoiceRepository.Retreive();

            //Act
            var actual = invoiceRepository.CalculateTotalAmountInvoiced(invoiceList);

            //Analyze
            Debug.WriteLine(actual);

            //Assert
            Assert.IsTrue(actual > 0M);
        }
Example #7
0
        public void CalculateTotalAmountInvoicedTest()
        {
            //Arrange
            InvoiceRepository invoiceRepository = new InvoiceRepository();
            var invoiceList = invoiceRepository.Retrieve();

            //Act
            var totalAmmountInvoiced = invoiceRepository.CalculateTotalAmountInvoiced(invoiceList);

            //Analyze
            TestContext.WriteLine($"Total Amount Invoiced: {totalAmmountInvoiced:C}");

            //Assert
            Assert.IsNotNull(invoiceList);
        }