public static System.Object GetDataItemValueTSS( STEE.ISCS.OPCProxy.OPCServerProxy target, System.String itemID) { string currentMethod = Dottest.Framework.Stubs.CurrentTestMethod.Name; if (currentMethod.Equals("TestGetOPCValue02")) { //boolean return(true); } else if (currentMethod.Equals("TestGetOPCValue03")) { //numeric return(22); } else if (currentMethod.Equals("TestGetOPCValue04")) { //invalid type return("sytt"); } else { return(0); } }
public static void ReleaseOPCTSS( STEE.ISCS.OPCProxy.OPCServerProxy target) { Exception e = new Exception(); throw e; }
public static System.Boolean AddOPCItemTSS( STEE.ISCS.OPCProxy.OPCServerProxy target, System.String opcID) { Exception e = new Exception(); throw e; }
public static System.Boolean IsOPCServerConnectedTSS( STEE.ISCS.OPCProxy.OPCServerProxy target) { string name = Dottest.Framework.Stubs.CurrentTestMethod.Name; if (name.Equals("TestInitializeTrendViewer01")) { return(false); } else { return(true); } }
public static System.Boolean RemoveAllOPCItemMSS( STEE.ISCS.OPCProxy.OPCServerProxy target) { object result; if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target }, out result)) { return((System.Boolean)result); } else { return(target.RemoveAllOPCItem()); } }
public static void ReleaseOPCMSS( STEE.ISCS.OPCProxy.OPCServerProxy target) { object result; if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target }, out result)) { return; } else { target.ReleaseOPC(); } }
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.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)); } }
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); } }
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)); }
public static System.Boolean RemoveAllOPCItemTSS( STEE.ISCS.OPCProxy.OPCServerProxy target) { string name = Dottest.Framework.Stubs.CurrentTestMethod.Name; if (name.Equals("TestStartRealTimeOrMixedModeCharting03")) { System.Runtime.InteropServices.COMException e = new System.Runtime.InteropServices.COMException(); throw e; //this exception didn't caught exactly. But caught(Exception e) } else if (name.Equals("TestStartRealTimeOrMixedModeCharting04")) { Exception e = new Exception(); throw e; } else { return(true); } }
public static void InitializeServerTSS( STEE.ISCS.OPCProxy.OPCServerProxy target, System.String serverName, System.String groupName) { return; }
public static System.Boolean RemoveAllOPCItemTSS( STEE.ISCS.OPCProxy.OPCServerProxy target) { throw new Exception(); }
public static System.Boolean IsOPCServerConnectedTSS( STEE.ISCS.OPCProxy.OPCServerProxy target) { return(true); }
public static System.Boolean ReconnectAndAddToOPCTSS( STEE.ISCS.OPCProxy.OPCServerProxy target) { return(true); }