public void Dispose_WithCreatedConnection()
        {
            var factory = new OracleDbConnectionFactory("Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;");

            var connection = factory.CreateConnection();

            factory.Dispose();
        }
        public void CreateConnection_ReturnsNewOracleConnection()
        {
            var factory = new OracleDbConnectionFactory("Data Source=MyOracleDB;User Id=myUsername;Password=myPassword;");

            var connection = factory.CreateConnection();

            Assert.NotNull(connection);
            Assert.IsType <OracleConnection>(connection);
        }
        public void CreateConnection_WrongConnectionString_WrongFormat_Throws(string wrongConnectionString)
        {
            var factory = new OracleDbConnectionFactory(wrongConnectionString);

            Assert.Throws <ArgumentException>(() => factory.CreateConnection());
        }