Ejemplo n.º 1
0
        public async Task StartCreatingProducts_Success()
        {
            //Act
            var action = await productionController.StartCreatingProducts(It.IsAny <int>()) as RedirectToActionResult;

            //Assert
            productionService.Verify(x => x.StartCreatingProducts(It.IsAny <int>()), Times.Once);
            Assert.Equal("Index", action.ActionName);
        }