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)); } }
public static System.Object GetDataItemValueTSS( STEE.ISCS.OPCProxy.OPCServerProxy target, System.String itemID) { string name = Dottest.Framework.Stubs.CurrentTestMethod.Name; if (name.Equals("TestGetLatestDataPointValue01")) { return(null); } if (name.Equals("TestGetLatestDataPointValue02") || name.Equals("TestUpdateChartForRealTimeOrMixedMode01") || name.Equals("TestUpdateChartForRealTimeOrMixedMode03")) { Double obj = new double(); obj = 1.1; return(obj); } if (name.Equals("TestUpdateChartForRealTimeOrMixedMode02")) { Exception e = new Exception(); throw e; } if (name.Equals("TestGetLatestDataPointValue03")) { Boolean b = new Boolean(); b = false; return(b); } if (name.Equals("TestGetLatestDataPointValue07")) { Boolean b = new Boolean(); b = true; return(b); } if (name.Equals("TestGetLatestDataPointValue04")) { return(new DateTime(2012, 2, 1)); } return(target.GetDataItemValue(itemID)); }