Exemplo n.º 1
0
        public void CheckSnapshotPath()
        {
            //-sp "${CCNetWorkingDirectory}\Web Harmony Solution\Database\Baseline\BaselineData""
            //-sp '${CCNetWorkingDirectory}\Web Harmony Solution\Database\Baseline\BaselineData'
            string           snapshotPath = @"c:\temp";
            DataFreshConsole console      = DataFreshConsole.Execute("FOO", "test", "test", "localhost", "DataFreshSample", "-sp", snapshotPath);

            Assert.AreEqual(6, console.arguments.Keys.Count);
            Assert.AreEqual(snapshotPath, console.arguments["sp"]);
        }
Exemplo n.º 2
0
        public void PassServerNameCheckConnectionString()
        {
            string           serverInstance = @"localhost";
            DataFreshConsole console        = DataFreshConsole.Execute("FOO", "test", "test", serverInstance, "DataFreshSample");

            Assert.AreEqual(5, console.arguments.Keys.Count);
            Assert.AreEqual(serverInstance, console.arguments["s"]);
            string expectedConnectionString = @"user id=test;password=test;Initial Catalog=DataFreshSample;Data Source=localhost;";

            Assert.AreEqual(expectedConnectionString, console.connectionString);
        }
Exemplo n.º 3
0
        private static DataFreshConsole ExecuteDataFreshConsole(string command, params string[] options)
        {
            DataFreshConsole console = DataFreshConsole.Execute(command, "test", "test", "localhost", "DataFreshSample", options);

            return(console);
        }