The principal class for the DataMigration tool. It contains the Main() function, and processes command line arguments. It deserializes the DataMigrationPlan object, instantiates a MigrationEngine, and calls its Transform() method.
Exemplo n.º 1
0
        public void TestNegativeCaseGetConnectionString()
        {
            var propertyKey = "KeyToNonExistentAppSetting";

            var properties = new [] {
                new DescriptorProperty {
                    Name = propertyKey,
                    Value = "NonExistentAppSetting",
                },
            };

            var value = Utilities.GetConfigString(propertyKey, properties);
            Assert.IsNullOrEmpty(value);
        }
Exemplo n.º 2
0
        public void TestGetConnectionString()
        {
            var propertyKey = "foxyConnectionString";
            var properties = new [] {
                new DescriptorProperty {
                    Name= propertyKey,
                    Value="TestConnectionString",
                }
            };

            var connectionString =
                Utilities.GetConfigString(propertyKey, properties);
            Assert.AreEqual("The quick brown fox", connectionString);
        }