public async Task IsUserValid() { var validUser = fillTestDbHelper.Users.FirstOrDefault(user => !user.Deleted && user.Confirmed.Value); var invalidUser = fillTestDbHelper.Users.FirstOrDefault(user => !user.Confirmed.Value || user.Deleted); Assert.True(await loadUsersService.IsUserValidAsync(validUser.Id)); Assert.False(await loadUsersService.IsUserValidAsync(invalidUser.Id)); }