Пример #1
0
        public void TestRoundhousE()
        {
            var task = new RoundhousETask(".", "SQL2005", "TestRoundhousE", true,
                                          @"E:\external projects\kaithos\roundhouse\db\SQLServer\TestRoundhousE", "TEST",
                                          true);
            DeploymentResult results = task.Execute();

            Assert.IsFalse(results.ContainsError());
        }
Пример #2
0
        public void TestRoundhousE()
        {
            var task = new RoundhousETask("server=(local);database=TestRoundhouse;integrated security=true;",
                                          @"C:\Solutions\roundhouse\code_drop\sample\db\SQLServer\TestRoundhousE", "TEST",
                                          RoundhousEMode.DropCreate,DatabaseRecoveryMode.Simple,string.Empty,0,string.Empty,"git://somehwere","","",0,0, "", "", "", "", "", "", "", null);
            DeploymentResult results = task.Execute();

            System.Console.WriteLine(results);
            Assert.IsFalse(results.ContainsError());
        }
Пример #3
0
        public override void RegisterRealTasks(PhysicalServer site)
        {
            var serverAddressWithInstance = site.Name;
            if (!string.IsNullOrEmpty(_instanceName))
                serverAddressWithInstance = @"{0}\{1}".FormatWith(serverAddressWithInstance, _instanceName);

            var task = new RoundhousETask(serverAddressWithInstance, _databaseType, _databaseName, _drop,
                                          _scriptsLocation, _environmentName, _useSimpleRecoveryMode);

            site.AddTask(task);
        }
Пример #4
0
        public void TestRoundhousE()
        {
            var connection = new DbConnectionInfo{
                Server = "(local)",
                DatabaseName = "TestRoundhouse"
            };
            var task = new RoundhousETask(connection,
                                          @"C:\Solutions\roundhouse\code_drop\sample\db\SQLServer\TestRoundhousE", "TEST",
                                          RoundhousEMode.DropCreate,DatabaseRecoveryMode.Simple,string.Empty,0,string.Empty,"git://somehwere","","",0,0, "", "", "", "", "", "", "", "", null, "", "", null);
            DeploymentResult results = task.Execute();

            System.Console.WriteLine(results);
            Assert.IsFalse(results.ContainsError());
        }