예제 #1
0
        public void AddToBasket_BLLChangeData()
        {
            // Arrange
            _orderService.Setup(a => a.GetOrderDetail(It.IsAny <Guid>().ToString(), 1, true));

            // Act
            var res = _controller.AddToBasket(new BasketViewModel()
            {
                CustomerId = "", GameKey = "key", Quantity = "3", UnitInStock = 1
            });

            // Assert
            Assert.AreEqual(res.GetType(), typeof(PartialViewResult));
        }