Ejemplo n.º 1
0
        public void Effort_ServerStore_IsInServerAsync_Found_Test()
        {
            // Task<bool> IsInServerAsync(ApplicationUser user, string server)
            // Get user
            ApplicationUser _user     = _dbContext.Users.FirstOrDefault(u => u.UserName == "Phil");
            bool            _expected = true;

            // end of setup
            Task.Run(async() =>
            {
                bool _actual = await _sut.IsInServerAsync(_user, existServerName);
                Assert.AreEqual(_expected, _actual);
            }).GetAwaiter().GetResult();
        }