Exemplo n.º 1
0
            public void Create_ReturnsCorrectActionType_RedirectToActionResult()
            {
                //Arrange
                DogsController controller = new DogsController();

                //Act
                IActionResult view = controller.Create("puppy", "photo", "sex", "string breed", "string color", "string size", "string age", true, true, "string activity", true, true, true, true, true, "string needsDescription");

                //Assert

                Assert.IsInstanceOfType(view, typeof(RedirectToActionResult));
            }