예제 #1
0
 public void WhenStartedDeploysExisitingApplications()
 {
     foreach (IApplication application in deployManager.DeployLocation.Applications)
     {
         Assert.IsFalse(deployManager.IsDeployed(application), "application has not been deployed");
     }
     deployLocation.Applications.Add(new Application("testApp"));
     deployManager.Start();
     foreach (IApplication application in deployLocation.Applications)
     {
         Assert.IsTrue(deployManager.IsDeployed(application), "application has not been deployed");
     }
     DeployInformation[] infos = deployManager.DeployInformations;
     Assert.AreEqual(deployLocation.Applications.Count, infos.Length);
     foreach (DeployInformation info in infos)
     {
         Assert.AreEqual(DeployStatus.Deployed, info.Status);
     }
     deployManager.Stop();
 }
예제 #2
0
        public void SetUp()
        {
            springAssembliesDeployer = new SpringAssembliesDeployer(".");
            location = new FileSystemDeployLocation(deployPath);
            location.StartWatching();
            sync            = new Latch();
            defaultDeployer = new SyncedDeployer(sync);
            deployManager   = new DeployManager(springAssembliesDeployer, location, defaultDeployer);

            deployManager.Start();
        }
예제 #3
0
        public void SetUp ()
        {
            springAssembliesDeployer = new SpringAssembliesDeployer(".");
            location = new FileSystemDeployLocation(deployPath);
            location.StartWatching();
            sync = new Latch();
            defaultDeployer = new SyncedDeployer(sync);
            deployManager = new DeployManager(springAssembliesDeployer, location, defaultDeployer);

            deployManager.Start();
        }