public async Task Get_WhenCalled_ReturnsOkResult() { // Act var okResult = await _rentalController.GetAll(); var result = okResult.Result as OkObjectResult; // Assert Assert.IsType <OkObjectResult>(result); }