We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ebdc28 commit 75301c1Copy full SHA for 75301c1
src/Whaally.Domain.Testing/ServiceTest.cs
@@ -27,8 +27,14 @@ public ServiceTest(
27
};
28
29
// TODO: Reconsider this approach and refactor into an IAsyncLifetime structure
30
- Handler.Invoke(Context, Service).RunSynchronously();
+ var task = Handler.Invoke(Context, Service);
31
32
+ if (task is {
33
+ IsCompleted: false,
34
+ IsCanceled: false,
35
+ IsFaulted: false
36
+ }) task.RunSynchronously();
37
+
38
Result = Context.Result;
39
Commands = Context.Commands.SelectMany(q => q.Messages);
40
}
0 commit comments