public async Task NonNestedActions() { // Arrange var nonNestedAction = new NonNestedAction(); // Act // Assert Exception exception = await Should.ThrowAsync <Exception> ( async() => await Send(nonNestedAction) ); }
public async Task ShouldThrowExceptionForNonNestedActions() { // Arrange var nonNestedAction = new NonNestedAction(); // Act // Assert Exception exception = await Should.ThrowAsync <Exception> ( async() => _ = await Mediator.Send(nonNestedAction) ); }