Esempio n. 1
0
        public async Task ClearBasket_Success()
        {
            //Act
            var action = await basketController.ClearBasket() as RedirectToActionResult;

            //Assert
            basketService.Verify(x => x.ClearBasket(), Times.Once);
            Assert.Equal(actionName, action.ActionName);
            Assert.Equal(controllerName, action.ControllerName);
        }
Esempio n. 2
0
 public void ClearBasket()
 {
     fruitSprites = basketController.GetFruitSprites();
     basketController.ClearBasket();
 }