Exemple #1
0
        public void GetTotalPriceByOrderIDTest()
        {
            var repository = new BuildSchool.MVCSolution.OnlineStore.OrderDetailRepository.OrderDetailRepository();
            var result     = repository.GetTotalPriceByOrderID(1);

            Assert.IsTrue(result > 0);
        }
Exemple #2
0
        public void GetAll()
        {
            var repository = new BuildSchool.MVCSolution.OnlineStore.OrderDetailRepository.OrderDetailRepository();
            var list       = repository.GetAll();

            Assert.IsTrue(list.Count() > 0);
        }
Exemple #3
0
        public void GetTotalQuantiyByProductIDTest()
        {
            var repository = new BuildSchool.MVCSolution.OnlineStore.OrderDetailRepository.OrderDetailRepository();
            var result     = repository.GetTotalQuantiyByProductID(1);

            Assert.AreEqual(result, 2);
        }