Ejemplo n.º 1
0
        public async Task FilterServices_SendNullData_ReturnRedirect()
        {
            // Arrange
            ServiceListingsController controller = new ServiceListingsController(context);

            // Act
            var actionResult = await controller.FilterServices(null);

            // Assert
            Assert.IsType <ViewResult>(actionResult);
        }
Ejemplo n.º 2
0
        public async Task FilterServices_SendViableValues_ReturnView()
        {
            // Arrange
            ServiceListingsController controller = new ServiceListingsController(context);

            // Act
            var actionResult = await controller.FilterServices("Hello");

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