public void DisposeDispatcherOnDispose()
        {
            DynamicMock            mock       = new DynamicMock(typeof(IDeployEventDispatcher));
            IDeployEventDispatcher dispatcher = (IDeployEventDispatcher)mock.Object;

            mock.Expect("Dispose");
            IDeployLocation location = new FileSystemDeployLocation(dispatcher, deployPath);

            location.Dispose();
            mock.Verify();
        }
 protected void SetUp_()
 {
     deployPath         = Guid.NewGuid().ToString();
     sampleDir          = Path.Combine(deployPath, deploy);
     sampleDir2         = Path.Combine(deployPath, deploy + "2");
     serviceXml         = Path.Combine(sampleDir, Application.ServiceXml);
     watcherXml         = Path.Combine(sampleDir, Application.WatcherXml);
     triggeredLatch     = new Latch();
     trigger            = new ThreadingTimerTrigger(50);
     trigger.Triggered += new EventHandler(trigger_Triggered);
     dispatcher         = new AggregatedDeployEventDispatcher(trigger);
     TestUtils.ConfigureLog4Net();
 }
 protected void SetUp_ ()
 {
     deployPath = Guid.NewGuid ().ToString ();
     sampleDir = Path.Combine (deployPath, deploy);
     sampleDir2 = Path.Combine (deployPath, deploy + "2");
     serviceXml = Path.Combine (sampleDir, Application.ServiceXml);
     watcherXml = Path.Combine (sampleDir, Application.WatcherXml);
     triggeredLatch = new Latch();
     trigger = new ThreadingTimerTrigger (50);
     trigger.Triggered += new EventHandler(trigger_Triggered);
     dispatcher = new AggregatedDeployEventDispatcher (trigger);
     TestUtils.ConfigureLog4Net ();
 }
 public void SetUp()
 {
     TestUtils.ConfigureLog4Net();
     dispatched         = false;
     appName            = Guid.NewGuid().ToString();
     appFullPath        = Path.GetFullPath(appName);
     anotherAppName     = Guid.NewGuid().ToString();
     anotherAppFullPath = Path.GetFullPath(anotherAppName);
     Directory.CreateDirectory(appFullPath);
     Directory.CreateDirectory(anotherAppFullPath);
     eventLatch              = new Latch();
     controlledEventLatch    = new Latch();
     dispatcher              = new ForwardingDeployEventDispatcher();
     application             = new Application(appFullPath);
     dispatcher.DeployEvent += new DeployEventHandler(dispatcher_DeployEvent);
     watcher = new FileSystemApplicationWatcher(application);
 }
 public void StartWatching (IDeployEventDispatcher dispatcher)
 {
     started = true;
 }
 public void StartWatching(IDeployEventDispatcher dispatcher)
 {
     started = true;
 }
 public void SetUp ()
 {
     TestUtils.ConfigureLog4Net();
     dispatched = false;
     appName = Guid.NewGuid().ToString();
     appFullPath = Path.GetFullPath(appName);
     anotherAppName = Guid.NewGuid().ToString();
     anotherAppFullPath = Path.GetFullPath(anotherAppName);
     Directory.CreateDirectory(appFullPath);
     Directory.CreateDirectory(anotherAppFullPath);
     eventLatch = new Latch();
     controlledEventLatch = new Latch();
     dispatcher = new ForwardingDeployEventDispatcher();
     application = new Application(appFullPath);
     dispatcher.DeployEvent += new DeployEventHandler(dispatcher_DeployEvent);
     watcher = new FileSystemApplicationWatcher(application);
 }