public static void RemoveLogging_GivenNonLoggedConnection_ThrowsNothing()
        {
            var dbConnection = Mock.Of <IDbConnectionFactory>();
            var dialect      = Mock.Of <IDatabaseDialect>();
            var connection   = new SchematicConnection(dbConnection, dialect);

            Assert.That(() => connection.RemoveLogging(), Throws.Nothing);
        }
        public static void RemoveLogging_GivenLoggedConnection_ThrowsNothing()
        {
            var dbConnection = Mock.Of <IDbConnectionFactory>();
            var dialect      = Mock.Of <IDatabaseDialect>();
            var connection   = new SchematicConnection(dbConnection, dialect);

            var loggerFactory = new Mock <ILoggerFactory>();

            loggerFactory.Setup(factory => factory.CreateLogger(It.IsAny <string>())).Returns(Mock.Of <ILogger>());

            connection.AddLogging(loggerFactory.Object, LogLevel.Information);
            Assert.That(() => connection.RemoveLogging(), Throws.Nothing);
        }