Example #1
0
        public static IDisposable Override(Connector connection)
        {
            Connector oldConnection = currentConnection.Value;

            currentConnection.Value = connection;

            return new Disposable(() => currentConnection.Value = oldConnection);
        }