Exemplo n.º 1
0
        internal static string CreateLVTHtml(LeanValueTree tree)
        {
            VisionPresenter VP = new VisionPresenter();

            Directory.CreateDirectory("C:\\temp");
            return(VP.VisualizeToString(tree.Vision));
        }
Exemplo n.º 2
0
        public void SetupForTest()
        {
            _testVision   = new Vision("Test Vision Title");
            _parentNodeID = "Parent LVT Node Test ID";
            _testGoal     = new Goal("Test Goal Title");

            _mockGoalPresenter = new Mock <IGoalPresenter>();
            _mockGoalPresenter.SetupSequence(mgp => mgp.VisualizeToString(_testGoal, _testVision.NodeID)).Returns("This GoalPresenter method has been mocked")
            .Returns("This mocked GoalPresenter method has been called twice");
            _visionPresenter = new VisionPresenter(_mockGoalPresenter.Object);
            _expectedVisionOrgChartString = $"[{{ v:'{_testVision.NodeID}', f:'{_testVision.GetType().Name}<div style=\"font-style:italic\">{_testVision.Title}</div>'}}, '']";
        }