public async Task GivenEventsWhenAnExceptionOccursThenTheExceptionIsThrownAsync() { var reconciler = new TestableSynchronousEventReconciler(); _ = await Assert.ThrowsAsync <NotImplementedException>( () => reconciler.ReconcileAsync()); }
public async Task GivenEventsThenTheReconcilerIsInvokedAsync() { bool wasInvoked = false; var reconciler = new TestableSynchronousEventReconciler(events: _ => wasInvoked = true); _ = await reconciler.ReconcileAsync(); Assert.True(wasInvoked); }