public void CanBeStartedExplicitlyStartedButIsImplicitlyStoppedWhenDisposed()
        {
            FileSystemDeployLocation location = new FileSystemDeployLocation(deployPath);

            location.StartWatching();
            location.Dispose();
            location.StartWatching();
        }
        public void LockFileIsDeletedOnDisposeOrStop()
        {
            FileSystemDeployLocation location =
                new FileSystemDeployLocation(dispatcher, deployPath);

            location.StartWatching();
            location.Dispose();
            Assert.IsFalse(File.Exists(location.LockFileName));
        }
예제 #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();
        }
 protected void InitHandlerAndStartLocation(ISync sync)
 {
     GC.SuppressFinalize(location);
     InitHandler(sync);
     location.StartWatching();
 }
 public void CanBeStartedExplicitlyStartedButIsImplicitlyStoppedWhenDisposed ()
 {
     FileSystemDeployLocation location = new FileSystemDeployLocation(deployPath);
     location.StartWatching();
     location.Dispose();
     location.StartWatching();
 }
 public void LockFileIsDeletedOnDisposeOrStop ()
 {
     FileSystemDeployLocation location = 
         new FileSystemDeployLocation (dispatcher, deployPath);
     location.StartWatching ();
     location.Dispose();
     Assert.IsFalse (File.Exists (location.LockFileName));
 }
예제 #7
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();
        }