Ejemplo n.º 1
0
        public void Verify_ProductID_Can_Be_Assigned()
        {
            var orderItem = new CustomerAndInventory.OrderItem();
            var productID = 73;

            orderItem.ProductID = productID;

            Assert.AreEqual(productID, orderItem.ProductID);
        }
Ejemplo n.º 2
0
        public void Verify_OrderID_Can_Be_Assigned()
        {
            var orderItem = new CustomerAndInventory.OrderItem();
            var orderID   = 42;

            orderItem.OrderID = orderID;

            Assert.AreEqual(orderID, orderItem.OrderID);
        }
Ejemplo n.º 3
0
        public void Verify_ID_Can_Be_Assigned()
        {
            var assignedID = 1234;
            var orderItem  = new CustomerAndInventory.OrderItem();

            orderItem.ID = assignedID;

            Assert.AreEqual(orderItem.ID, assignedID);
        }
Ejemplo n.º 4
0
        public void Verify_Assignment_Of_Product_ID()
        {
            var tempID    = 1234;
            var orderItem = new CustomerAndInventory.OrderItem();
            var product   = new CustomerAndInventory.Product();

            product.ID          = tempID;
            orderItem.ProductID = product.ID;

            Assert.AreEqual(product.ID, orderItem.ProductID);
        }
Ejemplo n.º 5
0
        public void Verify_Assignment_Of_Order_ID()
        {
            var tempID    = 1234;
            var order     = new CustomerAndInventory.Order();
            var orderItem = new CustomerAndInventory.OrderItem();

            order.ID          = tempID;
            orderItem.OrderID = order.ID;

            Assert.AreEqual(order.ID, orderItem.OrderID);
        }
Ejemplo n.º 6
0
        public void Verify_ID_Is_0_When_Instantiated()
        {
            var orderItem = new CustomerAndInventory.OrderItem();

            Assert.AreEqual(0, orderItem.ID);
        }