Exemple #1
0
        public static void set_MaximumMSS(
            System.Windows.Forms.NumericUpDown target,
            System.Decimal value_1)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, value_1 }, out result))
            {
                return;
            }
            else
            {
                target.Maximum = value_1;
            }
        }
Exemple #2
0
        public static System.IAsyncResult BeginInvokeMSS(
            System.Windows.Forms.Control target,
            System.Delegate method)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, method }, out result))
            {
                return((System.IAsyncResult)result);
            }
            else
            {
                return(target.BeginInvoke(method));
            }
        }
Exemple #3
0
        public static void PopulateDataPointListDataGridViewMSS(
            TrendViewer.View.DataPointList target,
            System.Int32 mode, System.Data.DataTable dpList)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, mode, dpList }, out result))
            {
                return;
            }
            else
            {
                target.PopulateDataPointListDataGridView(mode, dpList);
            }
        }
Exemple #4
0
        public static void GetDataPointListMSS(
            OPCSampleGrpConfig.Controller.OPCDataSelectorController target,
            System.String opcServerName, System.String filterString)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, opcServerName, filterString }, out result))
            {
                return;
            }
            else
            {
                target.GetDataPointList(opcServerName, filterString);
            }
        }
Exemple #5
0
        public static System.Object GetDataItemValueMSS(
            STEE.ISCS.OPCProxy.OPCServerProxy target,
            System.String itemID)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, itemID }, out result))
            {
                return((System.Object)result);
            }
            else
            {
                return(target.GetDataItemValue(itemID));
            }
        }
Exemple #6
0
        public static System.Collections.Generic.Dictionary <System.UInt64, Entity.Trending.EtyEntity> GetAllDataNodesByServerRootNameMSS(
            DAO.Trending.EntityDAO target,
            System.String serverRootName)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, serverRootName }, out result))
            {
                return((System.Collections.Generic.Dictionary <System.UInt64, Entity.Trending.EtyEntity>)result);
            }
            else
            {
                return(target.GetAllDataNodesByServerRootName(serverRootName));
            }
        }
Exemple #7
0
        public static void DeleteByFormulaLblNameMSS(
            /*TrendViewer.Controller.FormulaListController*/ object target,
            System.String formulaName)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, formulaName }, out result))
            {
                return;
            }
            else
            {
                Helper.CallMethod(target, "DeleteByFormulaLblName", new object[] { formulaName });
            }
        }
Exemple #8
0
        public static System.Boolean ExecuteNonQueryWithParamsMSS(
            DAO.Trending.Common.SimpleDatabase target,
            System.String query, System.Collections.Generic.List <DAO.Trending.Helper.SqlParameter> parameters)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, query, parameters }, out result))
            {
                return((System.Boolean)result);
            }
            else
            {
                return(target.ExecuteNonQueryWithParams(query, parameters));
            }
        }
Exemple #9
0
        public static void SendMSS(
            STEE.ISCS.MVC.NotifyManager target,
            System.String type, System.String name, System.Object body)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, type, name, body }, out result))
            {
                return;
            }
            else
            {
                target.Send(type, name, body);
            }
        }
Exemple #10
0
        public static System.Int32 AddMSS(
            System.Windows.Forms.DataGridViewColumnCollection target,
            System.String columnName, System.String headerText)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, columnName, headerText }, out result))
            {
                return((System.Int32)result);
            }
            else
            {
                return(target.Add(columnName, headerText));
            }
        }
Exemple #11
0
        public static System.Boolean ExecuteNonQueryMSS(
            DAO.Trending.Common.SimpleDatabase target,
            System.String query)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, query }, out result))
            {
                return((System.Boolean)result);
            }
            else
            {
                return(target.ExecuteNonQuery(query));
            }
        }
Exemple #12
0
        public static void RealTimeExecuteCmd_ClickMSS(
            /*TrendViewer.Controller.TrendViewController*/ object target,
            System.Object sender, System.EventArgs e)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, sender, e }, out result))
            {
                return;
            }
            else
            {
                Helper.CallMethod(target, "RealTimeExecuteCmd_Click", new object[] { sender, e });
            }
        }
Exemple #13
0
        public static void ExportHistoryDataMSS(
            /*TrendViewer.Controller.TrendViewController*/ object target,
            System.String filename)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, filename }, out result))
            {
                return;
            }
            else
            {
                Helper.CallMethod(target, "ExportHistoryData", new object[] { filename });
            }
        }
Exemple #14
0
        public static void AbortMSS(
            System.Threading.Thread target)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target }, out result))
            {
                return;
            }
            else
            {
                //target.Abort();
                return;
            }
        }
Exemple #15
0
        public static System.Boolean IsIdentifierStartCharMSS(
            /*OPCTrendLib.Scanner*/ object target,
            System.Char c)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, c }, out result))
            {
                return((System.Boolean)result);
            }
            else
            {
                return((System.Boolean)Helper.CallMethod(target, "IsIdentifierStartChar", new object[] { c }));
            }
        }
Exemple #16
0
        public static Entity.Trending.EtyDataLogDPGroupTrend GetOPCGrpByIDMSS(
            DAO.Trending.DatalogDPGroupTrendDAO target,
            System.Double opcGrpID)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, opcGrpID }, out result))
            {
                return((Entity.Trending.EtyDataLogDPGroupTrend)result);
            }
            else
            {
                return(target.GetOPCGrpByID(opcGrpID));
            }
        }
Exemple #17
0
        public static System.Collections.Generic.Dictionary <System.UInt64, Entity.Trending.EtyEntity> GetDataNodeChildrenByPkeyMSS(
            DAO.Trending.EntityDAO target,
            System.UInt64 pkey)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, pkey }, out result))
            {
                return((System.Collections.Generic.Dictionary <System.UInt64, Entity.Trending.EtyEntity>)result);
            }
            else
            {
                return(target.GetDataNodeChildrenByPkey(pkey));
            }
        }
Exemple #18
0
        public static System.Boolean DeleteOPCSampleGroupByIdMSS(
            DAO.Trending.DatalogDPGroupTrendDAO target,
            System.String opcGrpId)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, opcGrpId }, out result))
            {
                return((System.Boolean)result);
            }
            else
            {
                return(target.DeleteOPCSampleGroupById(opcGrpId));
            }
        }
Exemple #19
0
        public static DAO.Trending.Common.DatabaseSession GetSessionMSS(
            DAO.Trending.Common.SessionStore target,
            System.String connectionString)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, connectionString }, out result))
            {
                return((DAO.Trending.Common.DatabaseSession)result);
            }
            else
            {
                return(target.GetSession(connectionString));
            }
        }
Exemple #20
0
        public static System.Boolean UpdateOPCGrpDataMSS(
            DAO.Trending.DatalogDPGroupTrendDAO target,
            Entity.Trending.EtyDataLogDPGroupTrend etyDPGroupTrend)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, etyDPGroupTrend }, out result))
            {
                return((System.Boolean)result);
            }
            else
            {
                return(target.UpdateOPCGrpData(etyDPGroupTrend));
            }
        }
Exemple #21
0
        public static void SetFormTypeMSS(
            /*TrendViewer.Controller.FormulaGroupController*/ object target,
            TrendViewer.View.FormType type)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, type }, out result))
            {
                return;
            }
            else
            {
                Helper.CallMethod(target, "SetFormType", new object[] { type });
            }
        }
Exemple #22
0
        public static System.Boolean CanConvertToMSS(
            System.ComponentModel.TypeConverter target,
            System.Type destinationType)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, destinationType }, out result))
            {
                return((System.Boolean)result);
            }
            else
            {
                return(target.CanConvertTo(destinationType));
            }
        }
Exemple #23
0
        public static System.Boolean AddOPCItemMSS(
            STEE.ISCS.OPCProxy.OPCServerProxy target,
            System.String opcID)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, opcID }, out result))
            {
                return((System.Boolean)result);
            }
            else
            {
                return(target.AddOPCItem(opcID));
            }
        }
Exemple #24
0
        public static System.Collections.Generic.List <Entity.Trending.EtyOPCDataPoint> GetUniqueEnabledOPCDataPointMSS(
            DAO.Trending.OPCNodeNDataPointDAO target,
            System.String hostName, System.String serverName)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, hostName, serverName }, out result))
            {
                return((System.Collections.Generic.List <Entity.Trending.EtyOPCDataPoint>)result);
            }
            else
            {
                return(target.GetUniqueEnabledOPCDataPoint(hostName, serverName));
            }
        }
Exemple #25
0
        public static void KillMSS(
            System.Diagnostics.Process target)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target }, out result))
            {
                return;
            }
            else
            {
                //target.Kill();
                return;
            }
        }
Exemple #26
0
        public static System.String[] SplitMSS(
            System.String target,
            System.String[] separator, System.StringSplitOptions options)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, separator, options }, out result))
            {
                return((System.String[])result);
            }
            else
            {
                return(target.Split(separator, options));
            }
        }
Exemple #27
0
        public static System.Object EvalMSS(
            OPCTrendLib.Evaluator target,
            System.String text)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, text }, out result))
            {
                return((System.Object)result);
            }
            else
            {
                return(target.Eval(text));
            }
        }
Exemple #28
0
        public static void InitializeServerMSS(
            STEE.ISCS.OPCProxy.OPCServerProxy target,
            System.String serverName, System.String groupName)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, serverName, groupName }, out result))
            {
                return;
            }
            else
            {
                target.InitializeServer(serverName, groupName);
            }
        }
Exemple #29
0
        public static void AddStringItemMSS(
            STEE.ISCS.MulLanguage.StringHelper target,
            System.String ID, System.String TextEnglish, System.String TextChinese, System.String Description)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, ID, TextEnglish, TextChinese, Description }, out result))
            {
                return;
            }
            else
            {
                target.AddStringItem(ID, TextEnglish, TextChinese, Description);
            }
        }
Exemple #30
0
        public static System.Collections.Generic.List <Entity.Trending.EtyDataLogDPTrend> GetDataPointByNameMSS(
            DAO.Trending.DatalogDPTrendDAO target,
            System.String opcServerName, System.String DataPointNameSubstr)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, opcServerName, DataPointNameSubstr }, out result))
            {
                return((System.Collections.Generic.List <Entity.Trending.EtyDataLogDPTrend>)result);
            }
            else
            {
                return(target.GetDataPointByName(opcServerName, DataPointNameSubstr));
            }
        }