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);
        }
Example #2
0
 public void ClearBasket()
 {
     fruitSprites = basketController.GetFruitSprites();
     basketController.ClearBasket();
 }