public async Task Should_Not_Handle_Exceptions_For_Void_Return_Values() { await Assert.ThrowsAsync <UserFriendlyException>( async() => await GetResponseAsStringAsync( "/ExceptionHandling/ExceptionTestPage?handler=UserFriendlyException_Void" ) ); #pragma warning disable 4014 _fakeExceptionSubscriber .DidNotReceive() .HandleAsync(Arg.Any <ExceptionNotificationContext>()); #pragma warning restore 4014 }
public async Task Should_Not_Handle_Exceptions_For_ActionResult_Return_Values() { await Assert.ThrowsAsync <UserFriendlyException>( async() => await GetResponseAsObjectAsync <RemoteServiceErrorResponse>( "/api/exception-test/UserFriendlyException2" ) ); _fakeExceptionSubscriber .DidNotReceive() .HandleAsync(Arg.Any <ExceptionNotificationContext>()); }
public async Task Should_Not_Handle_Exceptions_For_ActionResult_Return_Values() { await Assert.ThrowsAsync <UserFriendlyException>( async() => await GetResponseAsObjectAsync <RemoteServiceErrorResponse>( "/ExceptionHandling/ExceptionTestPage?handler=UserFriendlyException2" ) ); #pragma warning disable 4014 _fakeExceptionSubscriber .DidNotReceive() .HandleAsync(Arg.Any <ExceptionNotificationContext>()); #pragma warning restore 4014 }