Skip to main content
2 of 2
Fixed formatting.
AztecCodes
  • 800
  • 6
  • 17
  • 31

Sometimes Wait doesn't work with test cases when you run multiple individual task in your actual implementation.

The Code:

private async void DoStuff(long idToLookUp) { IOrder order = await orderService.LookUpIdAsync(idToLookUp).Wait(); IsSearchShowing = false; }