public void AllDependenciesAreUnregisterd()
        {
            var fakeDbDependency = A.Fake <ISignalRDbDependency>();
            var fakeDbDependencyRemoveRegistrationCall = A.CallTo(() => fakeDbDependency.RemoveRegistration(null)).WithAnyArguments();

            var fakeDbConnection            = A.Fake <IDbConnection>();
            var fakeDbConnectionOpenCall    = A.CallTo(() => fakeDbConnection.Open());
            var fakeDbConnectionDisposeCall = A.CallTo(() => fakeDbConnection.Dispose());

            var fakeDbProviderFactory = A.Fake <IDbProviderFactory>();

            A.CallTo(() => fakeDbProviderFactory.CreateConnection()).Returns(fakeDbConnection);
            var depManager = new OracleDependencyManager(fakeDbProviderFactory, new TraceSource("ss"));

            depManager.RegisterDependency(fakeDbDependency);
            depManager.RegisterDependency(fakeDbDependency);
            depManager.RemoveRegistration(string.Empty);

            fakeDbConnectionOpenCall.MustHaveHappened(Repeated.Exactly.Once);
            fakeDbDependencyRemoveRegistrationCall.MustHaveHappened(Repeated.Exactly.Twice);
            fakeDbConnectionDisposeCall.MustHaveHappened(Repeated.Exactly.Once);
        }
        public void Basic_Success()
        {
            OracleDependencyManager depManager = new OracleDependencyManager(A.Fake <IDbProviderFactory>(), new TraceSource("ss"));

            depManager.RegisterDependency(null);
        }