public void OrderDetailsListIndex_IsReturned_WhenDefaultConstructorIsUsed()
        {
            //Arrange
            OrderFunctionality o7  = new OrderFunctionality();
            OrderDetails       od1 = new OrderDetails();

            o7.NewOrderDetails(od1);
            OrderDetails od2 = new OrderDetails("REF-000-000-01", "REF-000-001", "P0001", 1);

            o7.NewOrderDetails(od2);
            //Act
            //Assert
            Assert.AreEqual(o7.OrderProducts("REF-000-000-01"), 1);
        }
        public void OrderDetailsListIndex_IsReturned_WhenOrderDetailsAreAdded()
        {
            //Arrange
            OrderFunctionality o6  = new OrderFunctionality();
            OrderDetails       od1 = new OrderDetails();

            o6.NewOrderDetails(od1);
            OrderDetails od2 = new OrderDetails("REF-000-000-02", "REF-000-001", "P0001", 1);

            o6.NewOrderDetails(od2);
            //Act
            //Assert
            Assert.AreEqual(o6.OrderProducts("REF-000-000-02"), 1);
        }
        public void Quantity_IsReturned_WhenOrderDetailsAdded()
        {
            //Arrange
            OrderFunctionality o10 = new OrderFunctionality();
            OrderDetails       od3 = new OrderDetails("REF-000-000-01", "REF-000-001", "P0000", 1);

            o10.NewOrderDetails(od3);

            //Act
            int i = o10.OrderProducts("REF-000-000-01");

            //Assert
            Assert.AreEqual(o10.OrderQuantity(i), 1);
        }
        public void OrderTotalIsZero_IsReturned_WhenQuantityIsZero()
        {
            //Arrange
            OrderFunctionality o8  = new OrderFunctionality();
            OrderDetails       od1 = new OrderDetails("REF-000-000-01", "REF-000-001", "P0001", 0);

            o8.NewOrderDetails(od1);
            Product product1 = new Product("1", "Test1", 0.01m);

            o8.NewProduct(product1);
            //Act
            //Assert
            Assert.AreEqual(o8.OrderTotal("REF-000-000-01", "1"), 0.00m);
        }