/// <summary>
        ///     Initializes a new instance of the <see cref="AlfredSubsystem" /> class.
        /// </summary>
        /// <param name="container"> The container. </param>
        /// <param name="includeExplorerPage">
        ///     <see langword="true"/> to include the page in root pages, <see langword="false"/>
        ///     otherwise.
        /// </param>
        public MindExplorerSubsystem([NotNull] IObjectContainer container, bool includeExplorerPage)
            : base(container)
        {
            MindExplorerPage = new ExplorerPage(container, "Mind Explorer", "MindMap");

            if (!includeExplorerPage) { MindExplorerPage.IsRootLevel = false; }
        }
        public void ExplorerPageIsVisible()
        {
            var page = new ExplorerPage(Container, TestPageName, TestPageId);

            Assert.That(page.IsVisible);
        }
 public void ExplorerPageCanBeCreated()
 {
     var page = new ExplorerPage(Container, TestPageName, TestPageId);
     Assert.AreEqual(TestPageId, page.Id);
     Assert.AreEqual(TestPageName, page.Name);
 }
Beispiel #4
0
        public override void SetUp()
        {
            base.SetUp();

            _page = new ExplorerPage(Container, "Test Page", "TestExp");
        }
        public override void SetUp()
        {
            base.SetUp();

            var bootstrapper = new AlfredBootstrapper(Container);
            _alfred = bootstrapper.Create();

            _subsystem = new MindExplorerSubsystem(Container, true);

            _page = _subsystem.MindExplorerPage;
        }