Ejemplo n.º 1
0
        public void Add_NoParams_ReturnsViewResult()
        {
            // Arrange
            ILocationService    service    = Substitute.For <ILocationService>();
            LocationsController controller = GetController(locationService: service);

            // Act
            IActionResult result = controller.Add();

            // Assert
            Assert.IsType <ViewResult>(result);
        }