コード例 #1
0
            public void ShouldPassedSchemaNameWhenNoTranslationsSpecified()
            {
                string connectionString = "User Id=IAM_V4_1_ADM;Password=mypass;Server=dev10g;Home=OraClient11gR2;Persist Security Info=True";

                IEnumerable <SchemaTranslation> schemaTranslations = null;
                string result = SchemaTranslationParser.TranslateSchema("IAM_V4_1_ADM", connectionString);

                Assert.AreEqual("IAM_V4_1_ADM", result);
            }
コード例 #2
0
            public void ShouldReturnTranslatedSchemaWhenPassingAValidSchema()
            {
                string connectionString = "User Id=IAM_V4_1_ADM;Password=mypass;Server=dev10g;Home=OraClient11gR2;Persist Security Info=True;Schema Translations=IAM_V4_1_ADM->IAM_V4_ADM";

                IEnumerable <SchemaTranslation> schemaTranslations = null;
                string result = SchemaTranslationParser.TranslateSchema("IAM_V4_1_ADM", connectionString);

                Assert.AreEqual("IAM_V4_ADM", result);
            }