CallInitializeShell() публичный Метод

public CallInitializeShell ( ) : void
Результат void
Пример #1
0
        public void InitializeShellComposesShell()
        {
            var bootstrapper = new DefaultMefBootstrapper();
            var container    = new CompositionContainer();
            var shell        = new DefaultShell();

            bootstrapper.BaseContainer = container;
            bootstrapper.BaseShell     = shell;

            bootstrapper.CallInitializeShell();

            Assert.IsTrue(shell.AreImportsSatisfied);
        }
Пример #2
0
        public void InitializeShellComposesShell()
        {
            var bootstrapper = new DefaultMefBootstrapper();
            var container = new CompositionContainer();
            var shell = new DefaultShell();

            bootstrapper.BaseContainer = container;
            bootstrapper.BaseShell = shell;

            bootstrapper.CallInitializeShell();

            Assert.IsTrue(shell.AreImportsSatisfied);
        }