public void Effort_ServerStore_GetServersAsync_Test() { // Task<IList<string>> GetServersAsync(ApplicationUser user) // Get user ApplicationUser _user = _dbContext.Users.FirstOrDefault(u => u.UserName == "Phil"); int _expectedCount = _user.Servers.Count; // end of setup Task.Run(async() => { List <string> _actual = await _sut.GetServersAsync(_user); Assert.AreEqual(_expectedCount, _actual.Count); }).GetAwaiter().GetResult(); }