Esempio n. 1
0
        public static System.Windows.Forms.TreeNode getSelectedNodeTSS(
            TrendViewer.View.OPCDataSelector target)
        {
            string name = Dottest.Framework.Stubs.CurrentTestMethod.Name;

            if (name.Equals("TestAfterSelect01"))
            {
                //nodes.count>=1
                TreeNode node = new TreeNode();
                node.Tag = TestConst.DATANODE_KEY;
                node.Nodes.Add("1");
                node.Nodes[0].Tag = TestConst.DATANODE_KEY;
                return(node);
            }
            else if (name.Equals("TestAfterSelect02"))
            {
                //nodes.count<1
                TreeNode node = new TreeNode();
                node.Tag = TestConst.DATANODE_KEY;
                return(node);
            }
            else //(name.Equals("TestAfterSelect03"))
            {
                return(null);
            }
        }
Esempio n. 2
0
        public static Entity.Trending.EtyEntity getDPInGridViewTSS(
            TrendViewer.View.OPCDataSelector target,
            System.Int32 p)
        {
            EtyEntity ety = new EtyEntity();

            return(ety);
        }
Esempio n. 3
0
        public static void BuildDataNodeStructureTSS(
            TrendViewer.View.OPCDataSelector target,
            System.Collections.Generic.Dictionary <System.UInt64, Entity.Trending.EtyEntity> entityMap)
        {
            Exception e = new Exception();

            throw e;
        }
Esempio n. 4
0
        public static System.Windows.Forms.TreeNode getSelectedNodeMSS(
            TrendViewer.View.OPCDataSelector target)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target }, out result))
            {
                return((System.Windows.Forms.TreeNode)result);
            }
            else
            {
                return(target.getSelectedNode());
            }
        }
Esempio n. 5
0
        public static void BuildDataNodeStructureMSS(
            TrendViewer.View.OPCDataSelector target,
            System.Collections.Generic.Dictionary <System.UInt64, Entity.Trending.EtyEntity> entityMap)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, entityMap }, out result))
            {
                return;
            }
            else
            {
                Helper.CallMethod(target, "BuildDataNodeStructure", new object[] { entityMap });
            }
        }
Esempio n. 6
0
        public static Entity.Trending.EtyEntity getDPInGridViewMSS(
            TrendViewer.View.OPCDataSelector target,
            System.Int32 p)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, p }, out result))
            {
                return((Entity.Trending.EtyEntity)result);
            }
            else
            {
                return(target.getDPInGridView(p));
            }
        }
 public override void AttachCallBack(IModel model, IView view)
 {
     m_Model = (OPCDataSelectorModel)model;
     m_View  = (TrendViewer.View.OPCDataSelector)view;
 }