public static System.Boolean OpenConnectionTSS( DAO.Trending.DBConnection target, System.String localConnectionString) { string currentMethod = Dottest.Framework.Stubs.CurrentTestMethod.Name; if (currentMethod.Equals("TestRun01")) { i++; if (i >= 3) { i = 0; return(true); } else { return(false); } } else if (currentMethod.Equals("TestTestOracleConnection01")) { i++; if (i >= 2) { i = 0; return(true); } else { return(false); } } return(true); }
public static System.Boolean OpenConnectionMSS( DAO.Trending.DBConnection target, System.String localConnectionString) { object result; if (TestSpecificStubsUtil.RunTestSpecificStub(System.Reflection.MethodBase.GetCurrentMethod(), new object[] { target, localConnectionString }, out result)) { return((System.Boolean)result); } else { return(target.OpenConnection(localConnectionString)); } }