public UIContext() { renderContext = CommonMocks.RenderContext().Object; scene = new UserInterfaceSceneDriver( renderContext, CommonMocks.StyleConfigurator().Object, CommonMocks.FontProvider().Object); }
public TestUIDriver(IRenderable app, IStyleConfigurator styleConfigurator = null, IFontProvider fontProvider = null, IContentLayoutEngine contentLayoutEngine = null) { var renderContext = CommonMocks.RenderContext(contentLayoutEngine).Object; uiDriver = new UserInterfaceSceneDriver( renderContext, styleConfigurator ?? new ThemeStyler(new ThemeCollection { ["default"] = Theme.CreateDefaultTheme() }), fontProvider ?? CommonMocks.FontProvider().Object); defaultWorkspace = new Workspace("default", app); input = new ManualInputState(); uiDriver.Desktop.PushWorkspace(defaultWorkspace); DoLayout(); }