Exemple #1
0
        public void OrdersRepository_GetAll()
        {
            var repository = new BuildSchool.MVCSolution.OnlineStore.Repository.OrdersRepository();
            var orders     = repository.GetAll();

            Assert.IsTrue(orders.Count() > 0);
        }
Exemple #2
0
        public void OrdersRepository_GetCartOrderID()
        {
            var repository = new BuildSchool.MVCSolution.OnlineStore.Repository.OrdersRepository();
            var MemberID   = 1;
            var orders     = repository.GetCartOrderID(MemberID);

            Assert.IsTrue(orders > 0);
        }
Exemple #3
0
        public void OrdersRepository_GetByOrderIDTest()
        {
            var repository = new BuildSchool.MVCSolution.OnlineStore.Repository.OrdersRepository();
            var OrderID    = 2;
            var orders     = repository.GetByOrderID(OrderID);

            Assert.IsTrue(orders.Count() == 1);
        }
Exemple #4
0
        public void OrdersRepository_UpdateCartToOrdersTest()
        {
            var repository = new BuildSchool.MVCSolution.OnlineStore.Repository.OrdersRepository();
            var OrderID    = 1;
            var MemberID   = 1;
            var orders     = repository.UpdateCartToOrders(OrderID, MemberID);

            Assert.IsTrue(orders.Equals(1));
        }