Inheritance: ICoreShell, IMainThread
Ejemplo n.º 1
0
        /// <summary>
        /// Creates shell with a set of basic functional services.
        /// </summary>
        public static TestCoreShell CreateBasic()
        {
            var shell = new TestCoreShell(new ServiceManager());

            shell.AddBasicServices();
            return(shell);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates shell with a set of basic services which are substitutes
        /// </summary>
        public static TestCoreShell CreateSubstitute()
        {
            var shell = new TestCoreShell(new ServiceManager());

            shell.AddSubstiteServices();
            return(shell);
        }
Ejemplo n.º 3
0
 protected override void AddValues(CompositionContainer container, string testName) {
     base.AddValues(container, testName);
     var coreShell = new TestCoreShell(container);
     var batch = new CompositionBatch()
         .AddValue<IRSettings>(RSettingsStubFactory.CreateForExistingRPath(testName))
         .AddValue<ICoreShell>(coreShell)
         .AddValue(coreShell);
     container.Compose(batch);
 }