public void ChatsTest() { Task.Run(async() => { var taskResult = await chatController.Chats(); var result = taskResult as ViewResult; Assert.IsInstanceOf <ChatsViewModel>(result.Model); }).GetAwaiter().GetResult(); }