Exemplo n.º 1
0
        public void GetInvoiceTotalByIsPaidAndMonthTest()
        {
            //Arrange
            InvoiceRespository repository = new InvoiceRespository();
            var invoiceList = repository.Retrieve();

            //Act
            var query = repository.GetInvoiceTotalByIsPaidAndMonth(invoiceList);

            //NOT REALLY A TEST
        }
        public void CalculateMeanTest()
        {
            //Arrange
            InvoiceRespository repository = new InvoiceRespository();
            var invoiceList = repository.Retrieve();

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

            //Assert
            Assert.AreEqual(6.875M, actual);
        }
Exemplo n.º 3
0
        public void CalculateTotalUnitSold()
        {
            //Arrange
            InvoiceRespository repository = new InvoiceRespository();
            var invoiceList = repository.Retrieve();

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

            //Assert
            Assert.AreEqual(136, actual);
        }
Exemplo n.º 4
0
        public void CalculateTotalAmountInvoiceTest()
        {
            //Arrange
            InvoiceRespository repository = new InvoiceRespository();
            var invoiceList = repository.Retrieve();

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

            //Assert
            Assert.AreEqual(1333.14M, actual);
        }