Currently I am trying to do some unit test for the Controller and the ViewModel. My Controller function is like this:
It calls a private method to get user information as a helper function:

And store the user information in a viewModel then push the viewModel to the client-side.
The Question is how can I do uniting testing for this controller and the associated viewModel?
It returns a Task, which has no viewModel data. How can I access the data related to the viewModel?
Let me know if the information I gave is inadequate.
