Beispiel #1
0
        public void BuildContainerMustNotThrow()
        {
            var runAction = new Action(() => _bootstrapper.Run());

            runAction.ShouldNotThrow();

            var stopAction = new Action(() => _bootstrapper.Stop());

            stopAction.ShouldNotThrow();
        }
Beispiel #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            bootstrapper = new Bootstrapper();
            bootstrapper.Run();
        }
        public void StartupMosaic(MefBootstrapper bootstrapper)
        {
            _bootstrapper = bootstrapper;
            _bootstrapper.AdditionalCatalogs.Catalogs.Add(new AssemblyCatalog(bootstrapper.GetType().Assembly));

            _bootstrapper.Run();

            Container = _bootstrapper.Container;

            LoggingHelper = new LoggingHelper();
        }