internal static void GetLayoutDetailControls (LayoutDetailPanel layoutDetail, out PivotDetailPanel pivotForm, out MapDetailPanel mapForm, out ChartDetailPanel chartForm) { pivotForm = null; mapForm = null; chartForm = null; foreach (IRelatedObject child in layoutDetail.Children) { if (child is PivotDetailPanel) { pivotForm = child as PivotDetailPanel; } if (child is MapDetailPanel) { mapForm = child as MapDetailPanel; } if (child is ChartDetailPanel) { chartForm = child as ChartDetailPanel; } } Assert.IsNotNull(pivotForm); Assert.IsNotNull(mapForm); Assert.IsNotNull(chartForm); }
public override void MyTestInitialize() { base.MyTestInitialize(); m_PresenterTransaction = PresenterFactory.BeginSharedPresenterTransaction(m_Container, new BaseForm()); PresenterFactory.SharedPresenter.SharedModel.ExportStrategy = new FakeExportDialogStrategy(); m_ChartForm = new ChartDetailPanel(); m_ChartPresenter = new ChartPresenter(PresenterFactory.SharedPresenter, m_ChartForm); }