コード例 #1
0
        public void Add_AddBasket_ReturnTrueResult()
        {
            IBasketService basketService = new BasketManager(_mockBasketDal.Object);
            Basket         basket        = new Basket
            {
                Id         = 1,
                UserId     = 2,
                CreateDate = DateTime.Now,
                Active     = true
            };
            var result = basketService.Add(basket);

            Assert.IsTrue(result.Success);
        }