File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 137137 private void RunTest <T >(string testName ,
138138 IEnumerable < T > indexDbResults , IEnumerable < T > correctResults ) where T : class
139139 {
140+ // Remove any nulls from both collections
141+ indexDbResults = indexDbResults .Where (x => x != null );
142+ correctResults = correctResults .Where (x => x != null );
143+
140144 var result = TestValidator .ValidateLists (correctResults , indexDbResults );
141145
142146 string countResults = $" Results: {indexDbResults .Count ()}" ;
258262
259263 allPeople = await personQuery .ToListAsync ();
260264
261-
265+
262266
263267 List < Person > people = await personQuery .ToListAsync ();
264268 StateHasChanged ();
509513
510514 var asdffffff = await personQuery .FirstOrDefaultAsync (x => x .Name == " asdfn3nxknnd" );
511515
516+ var sdfsdfsdfdfsdf = await personQuery .OrderBy (x => x ._Age ).FirstOrDefaultAsync ();
517+
512518 // RunTest("null first or default", new List<Person>() { await personQuery.FirstOrDefaultAsync(x => x.Name == "asdfn3nxknnd") },
513519 // new List<Person>() { allPeople.OrderBy(x => x._Age).ThenBy(x => x._Id).FirstOrDefault(x => x.Name == "asdfn3nxknnd") });
514520
You can’t perform that action at this time.
0 commit comments