public void SetUp()
        {
            s1 = new RecordingService();
            s2 = new RecordingService();
            theLog = new PackageLog();

            theRunner = new BottleServiceRunner(new[] { new BottleService(s1, theLog), new BottleService(s2, theLog)  });
        }
        public void SetUp()
        {
            PackageRegistry.LoadPackages(x => x.Assembly(GetType().Assembly));
            theAggregator = new BottleServiceAggregator();

            theAggregator.Bootstrap(theLog);
            theRunner = theAggregator.ServiceRunner();

            theService = new StubService();
        }
        public void Start(string bootstrapperName, MarshalByRefObject remoteListener)
        {
            var domainSetup = AppDomain.CurrentDomain.SetupInformation;
            System.Environment.CurrentDirectory = domainSetup.ApplicationBase;
             
            // TODO -- need to handle exceptions gracefully here
            EventAggregator.Start((IRemoteListener) remoteListener);

            var application = new BottleServiceApplication();
            _runner = application.Bootstrap(bootstrapperName);
            _runner.Start();
        }
 public void Activate(IEnumerable<IPackageInfo> packages, IPackageLog log)
 {
     _runner = new BottleServiceRunner(FindServices(log));
     _runner.Start();
 }