Added tests for event invocation when opening shared connection with both synchronous and asynchronous methods. BaseDatabaseTests.OpenSharedConnectionAsync_WhenCalled_ShouldInvokeOnConnectionOpening() fails on this initial commit. The commit following this fixes Database.OpenSharedConnectionAsync(CancellationToken) to call OnConnectionOpening as the synchronous counterpart does, and results in a passing test.
I'll add tests for the remaining events shortly for completeness' sake.
Added tests for event invocation when opening shared connection with both synchronous and asynchronous methods.
BaseDatabaseTests.OpenSharedConnectionAsync_WhenCalled_ShouldInvokeOnConnectionOpening()
fails on this initial commit. The commit following this fixesDatabase.OpenSharedConnectionAsync(CancellationToken)
to callOnConnectionOpening
as the synchronous counterpart does, and results in a passing test.I'll add tests for the remaining events shortly for completeness' sake.
closes #685