public async Task GetAsync_WhenCalled_ReturnsOkResult( [Frozen] List <Service> services) { // Arrange _service.Setup(m => m.GetAllServicesAsync()).ReturnsAsync(services); // Act var okResult = await _controller.GetAsync(); // Assert Assert.IsType <OkObjectResult>(okResult.Result); }