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