public async void GetAll() { var result = await _userController.Get(null); Assert.NotNull(result); var okResult = result as OkObjectResult; Assert.Equal(200, okResult.StatusCode); var value = okResult.Value as List <UserViewModel>; Assert.Equal(MockData.Count(), value.Count()); }