Exemplo n.º 1
0
        public void Should_start_the_shelf_in_the_separate_app_domain()
        {
            _log.Debug("Starting up the controller");

            using (var coordinator = new Model.ServiceCoordinator())
            {
                coordinator.Start();
                coordinator.Send(new CreateShelfService("bob", ShelfType.Folder, typeof(TestAppDomainBootsrapper)));

                TestAppDomainBootsrapper.Started.WaitOne(20.Seconds()).ShouldBeTrue();
            }
        }
Exemplo n.º 2
0
        public void Should_stop_the_shelf_in_the_separate_app_domain()
        {
            using (var coordinator = new Model.ServiceCoordinator())
            {
                coordinator.Start();
                coordinator.Send(new CreateShelfService("bob", ShelfType.Internal, typeof(TestAppDomainBootsrapper)));

                TestAppDomainBootsrapper.Started.WaitOne(20.Seconds()).ShouldBeTrue();
            }

            TestAppDomainBootsrapper.Stopped.WaitOne(20.Seconds()).ShouldBeTrue();
        }