Example #1
0
        public async Task LoadPack_Success()
        {
            //Act
            var action = await deliveryController.LoadPack(It.IsAny <int>(), It.IsAny <int>()) as RedirectToActionResult;

            //Assert
            deliveryService.Verify(x => x.LoadPack(It.IsAny <int>(), It.IsAny <int>()), Times.Once);
            Assert.Equal("PackDetail", action.ActionName);
        }