/// <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); }
/// <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); }
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); }