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(); }
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(); }
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(); }