Ejemplo n.º 1
0
        public static Entity.Trending.EtyDataLogDPGroupTrend GetEditFieldsMSS(
            OPCSampleGrpConfig.View.OPCSampleGrpConfigStart target)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target }, out result))
            {
                return((Entity.Trending.EtyDataLogDPGroupTrend)result);
            }
            else
            {
                return(target.GetEditFields());
            }
        }
Ejemplo n.º 2
0
        public static System.String GetDataGridValueMSS(
            OPCSampleGrpConfig.View.OPCSampleGrpConfigStart target,
            System.Int32 nRow, System.Int32 nColumn)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, nRow, nColumn }, out result))
            {
                return((System.String)result);
            }
            else
            {
                return(target.GetDataGridValue(nRow, nColumn));
            }
        }
Ejemplo n.º 3
0
        public static void PopulateIntervalConfigDataGridViewMSS(
            OPCSampleGrpConfig.View.OPCSampleGrpConfigStart target,
            System.Int32 mode)
        {
            object result;

            if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, mode }, out result))
            {
                return;
            }
            else
            {
                target.PopulateIntervalConfigDataGridView(mode);
            }
        }
Ejemplo n.º 4
0
        public static Entity.Trending.EtyDataLogDPGroupTrend GetEditFieldsTSS(
            OPCSampleGrpConfig.View.OPCSampleGrpConfigStart target)
        {
            Entity.Trending.EtyDataLogDPGroupTrend grp = new Entity.Trending.EtyDataLogDPGroupTrend();
            string name = Dottest.Framework.Stubs.CurrentTestMethod.Name;

            if (name.Equals("TestSaveCommand01"))
            {
                return(null);
            }
            else if (name.Equals("TestSaveCommand02"))
            {
                grp.SampleGrpName = "testing";
                grp.SampleGrpID   = 1;
                grp.NewData       = true;
            }
            else if (name.Equals("TestSaveCommand03"))
            {
                grp.SampleGrpName = "testing123445";
                grp.NewData       = true;
            }
            return(grp);
        }
Ejemplo n.º 5
0
 public static void PopulateIntervalConfigDataGridViewTSS(
     OPCSampleGrpConfig.View.OPCSampleGrpConfigStart target,
     System.Int32 mode)
 {
     return;
 }
Ejemplo n.º 6
0
 public static System.String GetDataGridValueTSS(
     OPCSampleGrpConfig.View.OPCSampleGrpConfigStart target,
     System.Int32 nRow, System.Int32 nColumn)
 {
     return("1");
 }