public void Effort_ServerStore_DeleteAsync_Test() { // Task DeleteAsync(ApplicationServer server) _sut.Create(testServer); ApplicationServer _server = _sut.FindByName(testServerName); int _expectedCount = _dbContext.Servers.Count() - 1; Task.Run(async() => { await _sut.DeleteAsync(_server); Assert.AreEqual(_expectedCount, _dbContext.Servers.Count()); }).GetAwaiter().GetResult(); }