/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; }