Skip to main content
Fixed formatting.
Source Link
AztecCodes
  • 800
  • 6
  • 17
  • 31

/Sometimes .Wait doesn't work with test cases when you run multiple individual task in your actual implementation./ 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;  } 

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

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

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;  } 
Source Link

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

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