-
-
Save dcomartin/86c2dd5c21d474ac737d60d34f61ec13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test | |
{ | |
[Fact] | |
public async Task Single() | |
{ | |
var db = new TestDbContext(); | |
await db.Orders.SingleAsync(x => x.OrderId == 1000); | |
} | |
[Fact] | |
public async Task First() | |
{ | |
var db = new TestDbContext(); | |
await db.Orders.FirstAsync(x => x.OrderId == 1000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment