public async Task GetCommantsNotInFunction_HasData_ReturnSuccess() { var commandsController = new FunctionsController(_context); var result = await commandsController.GetCommantsNotInFunction("GetFunctionsPaging_NoFilter_ReturnSuccess1"); var okResult = result as OkObjectResult; Assert.NotNull(okResult); var commandVm = okResult.Value as IEnumerable <CommandVm>; Assert.True(commandVm.Count() > 0);; }