public async Task ImproperNestedActions() { // Arrange var improperNestedAction = new ImproperNestedAction(); // Act // Assert Exception exception = await Should.ThrowAsync <Exception> ( async() => await Send(improperNestedAction) ); }
public async Task ShouldThrowExceptionForImproperNestedActions() { // Arrange var improperNestedAction = new ImproperNestedAction(); // Act // Assert Exception exception = await Should.ThrowAsync <Exception> ( async() => _ = await Mediator.Send(improperNestedAction) ); }