コード例 #1
0
        public void the_constructed_oracle_database_connection_has_correct_string()
        {
            var connectionFactory = new OracleConnectionFactory();
            var connection = connectionFactory.Create("connectionString", "username", "password");

            Assert.That(connection.ConnectionString, Is.EqualTo(@"DATA SOURCE=connectionString;User ID=username;Password=password;Validate Connection=true;Statement Cache Size=0"));
        }
コード例 #2
0
        public void connection_factory_constructs_a_oracle_database_connection()
        {
            var connectionFactory = new OracleConnectionFactory();
            var connection = connectionFactory.Create("connectionString", "username", "password");

            Assert.That(connection, Is.TypeOf<OracleConnection>());
        }