Esempio n. 1
0
        protected override void CreateTestData()
        {
            base.CreateTestData();
            m_logic        = new TestCCLogic(Cache, m_chart, m_stText);      // m_chart is still null!
            m_helper.Logic = m_logic;
            m_logic.Ribbon = new MockRibbon(Cache, m_stText.Hvo);
            m_helper.MakeTemplate(out m_allColumns);
            // Note: do this AFTER creating the template, which may also create the DiscourseData object.
            m_chart = m_helper.SetupAChart();

            m_constChart = new ConstituentChart(Cache, m_logic);
            m_constChart.Init(null, null, null);
            m_chartBody       = m_constChart.Body;
            m_chartBody.Cache = Cache;             // don't know why constructor doesn't do this, but it doesn't.

            m_chartBody.SetRoot(m_chart, m_allColumns.ToArray());
        }
Esempio n. 2
0
        protected override void CreateTestData()
        {
            base.CreateTestData();
            m_firstParaWfics = m_helper.MakeAnnotations(m_firstPara);
            m_logic          = new TestCCLogic(Cache, m_chart, m_stText.Hvo);    // m_chart is still null!
            m_helper.Logic   = m_logic;
            m_logic.Ribbon   = m_mockRibbon = new MockRibbon(Cache, m_stText.Hvo);
            m_template       = m_helper.MakeTemplate(out m_allColumns);
            // Note: do this AFTER creating the template, which may also create the DiscourseData object.
            m_chart = new DsConstChart();
            Cache.LangProject.DiscourseDataOA.ChartsOC.Add(m_chart);
            m_chart.TemplateRA = m_template;
            m_logic.Chart      = m_chart;
            m_helper.MakeDefaultChartMarkers();
            m_helper.Chart = m_chart;

            m_constChart = new ConstituentChart(Cache, m_logic);
            m_constChart.Init(null, null);
            m_chartBody       = m_constChart.Body;
            m_chartBody.Cache = Cache;             // don't know why constructor doesn't do this, but it doesn't.
            m_chartBody.SetRoot(m_chart.Hvo, m_allColumns.ToArray());
        }