Skip to content

Commit 327b7a3

Browse files
committed
Make debugging slightly more comfortable
1 parent 9b829b8 commit 327b7a3

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

E2eTestWebApp/TestPages/WhereTestPage.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,22 @@ public async Task<IMagicQuery<Person>> SetupData()
1515
return db;
1616
}
1717

18-
public async Task<string> TestWhere0() {
18+
public async Task<string> GetDebugString()
19+
{
20+
var db = await SetupData();
21+
var items = await db.ToListAsync();
22+
var ret = string.Empty;
23+
foreach (var item in items)
24+
{
25+
ret += System.Text.Json.JsonSerializer.Serialize(item) + "\n";
26+
}
27+
return ret;
28+
}
29+
30+
public async Task<string> TestWhere0()
31+
{
32+
return await GetDebugString();
33+
1934
var result = RunTest("Date Equal",
2035
await (await SetupData()).Where(x => x.DateOfBirth.Value.Date == new DateTime(2020, 2, 10)).ToListAsync(),
2136
PersonData.persons.Where(x => x.DateOfBirth.HasValue && x.DateOfBirth.Value.Date == new DateTime(2020, 2, 10)));

0 commit comments

Comments
 (0)