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