public async Task GetAllAsync_200Ok() { _candidateService.MockGetAllAsync(); IActionResult result = await _controller.GetAsync(); var candidateResult = ((OkObjectResult)result).Value as IEnumerable <CandidateResponse>; Assert.IsInstanceOfType(result, typeof(OkObjectResult)); Assert.IsInstanceOfType(candidateResult, typeof(IEnumerable <CandidateResponse>)); Assert.IsTrue(candidateResult.Any()); }