Esempio n. 1
0
 public ExecuteProcedure(IDbEnvironment dbEnvironment, String procedureName, int errorCode)
 {
     this.procedureName = procedureName;
     this.dbEnvironment = dbEnvironment;
     expectException = true;
     this.errorCode = errorCode;
 }
Esempio n. 2
0
 public ExecuteProcedure(IDbEnvironment dbEnvironment, String procedureName, bool expectException)
 {
     this.procedureName = procedureName;
     this.dbEnvironment = dbEnvironment;
     this.expectException = expectException;
     errorCode = null;
 }
Esempio n. 3
0
        public static DataTable GetDataTable(String query,IDbEnvironment environment)
        {
            DbCommand dc = environment.CreateCommand(query, CommandType.Text);
            if (Options.ShouldBindSymbols())
                environment.BindFixtureSymbols(dc);

            DbDataAdapter oap = environment.DbProviderFactory.CreateDataAdapter();
            oap.SelectCommand = dc;
            var ds = new DataSet();
            oap.Fill(ds);
            dc.Dispose();
            return ds.Tables[0];
        }
Esempio n. 4
0
		public static DbParameterAccessor Clone(DbParameterAccessor dbacc, IDbEnvironment environment)
		{
			DbParameter cloneP=environment.DbProviderFactory.CreateParameter();
			cloneP.ParameterName=dbacc.DbParameter.ParameterName;
			cloneP.DbType= dbacc.DbParameter.DbType;
			cloneP.Direction= dbacc.DbParameter.Direction;
			cloneP.Size= dbacc.DbParameter.Size;
			cloneP.SourceColumn = dbacc.DbParameter.SourceColumn;
			cloneP.Value=dbacc.DbParameter.Value;
			DbParameterAccessor clone=new DbParameterAccessor(cloneP, dbacc.dotNetType,dbacc.position, dbacc.actualSqlType);
			clone.dbFieldName=dbacc.dbFieldName;
			clone.isBoundToCheckOperation=dbacc.isBoundToCheckOperation;            
            return clone;
		}
Esempio n. 5
0
 public DataTableFixture(IDbEnvironment environment, String query, bool isOrdered)
         :base(environment, query, isOrdered){}
Esempio n. 6
0
 public QueryStats(IDbEnvironment environment)
 {
     this.environment = environment;
 }
Esempio n. 7
0
 public DatabaseTest(IDbEnvironment environment)
 {
     this.environment = environment;
 }
Esempio n. 8
0
 public ExecuteProcedure()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 9
0
 /// <summary>
 /// Constructor that will use the default environment (from DbEnvironmentFactory) and
 /// read the DataTable objects to compare from symbols contained in the first 
 /// two fixture arguments. Intended for use in standalone mode.
 /// </summary>
 public CompareStoredQueries()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 10
0
		public Insert(IDbEnvironment dbEnvironment, String tableName) {
            this.tableName= tableName;
			this.dbEnvironment = dbEnvironment;
			
		}		
Esempio n. 11
0
 public Update(IDbEnvironment dbEnvironment)
 {
     this.dbEnvironment=dbEnvironment;
 }
Esempio n. 12
0
 public SetTableParameter(IDbEnvironment dbEnvironment)
 {
     this.dbEnvironment = dbEnvironment;
 }
Esempio n. 13
0
 public Update()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 14
0
 public InsertFixture(IDbEnvironment environment,
                      String statement)
     : base(environment, statement)
 {
 }
Esempio n. 15
0
 public SetTableParameter()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 16
0
 public StoredProcedureFixture(IDbEnvironment environment,
                               String statement)
     : base(environment, statement)
 {
 }
Esempio n. 17
0
 public DataTableFixture(IDbEnvironment environment, String query, bool isOrdered)
     : base(environment, query, isOrdered)
 {
 }
Esempio n. 18
0
 public QueryStats(IDbEnvironment environment)
 {
     this.environment = environment;
 }
Esempio n. 19
0
 public InsertFixture(IDbEnvironment environment,
         String statement)
     : base(environment, statement) { }
Esempio n. 20
0
 public Update(IDbEnvironment dbEnvironment)
 {
     this.dbEnvironment = dbEnvironment;
 }
Esempio n. 21
0
 public Insert()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 22
0
 public Update(IDbEnvironment dbEnvironment, String tableName)
 {
     this.tableName     = tableName;
     this.dbEnvironment = dbEnvironment;
 }
Esempio n. 23
0
 public QueryStats()
 {
     environment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 24
0
 public Inspect()
 {
     this.environment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 25
0
 public Query(){        
     this.environment=DbEnvironmentFactory.DefaultEnvironment;
     this.isOrdered = false;
 }
Esempio n. 26
0
 public Inspect(IDbEnvironment dbEnvironment, String mode, String objName)
 {
     this.objectName  = objName;
     this.mode        = mode;
     this.environment = dbEnvironment;
 }
 /// <summary>
 /// Constructor that allows the caller to pass an IDbEnvironment instance and two symbol names
 /// that will be used to retrieve DataTable objects for comparison. Intended for use in flow mode.
 /// </summary>
 /// <param name="environment"></param>
 /// <param name="symbol1">Symbol name for the fixture symbol containing the first DataTable</param>
 /// <param name="symbol2">Symbol name for the fixture symbol containing the second DataTable</param>
 public CompareStoredQueriesHideMatchingRows(IDbEnvironment environment, String symbol1, String symbol2)
 {
     this.dbEnvironment = environment;
     this.symbol1       = symbol1;
     this.symbol2       = symbol2;
 }
Esempio n. 28
0
 public Execute()
 {
     environment = DbEnvironmentFactory.DefaultEnvironment;
 }
 /// <summary>
 /// Constructor that will use the default environment (from DbEnvironmentFactory) and
 /// read the DataTable objects to compare from symbols contained in the first
 /// two fixture arguments. Intended for use in standalone mode.
 /// </summary>
 public CompareStoredQueriesHideMatchingRows()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 30
0
 public Execute(IDbEnvironment environment, String statement)
 {
     this.environment = environment;
     this.statement   = statement;
 }
Esempio n. 31
0
 public static DataTable GetDataTable(Symbols symbols, String query, IDbEnvironment environment)
 {
     return GetDataTable(symbols, query, environment, 1);
 }
Esempio n. 32
0
 public Query()
 {
     this.environment = DbEnvironmentFactory.DefaultEnvironment;
     this.isOrdered   = false;
 }
Esempio n. 33
0
 public IdRetrievalAccessor(IDbEnvironment environment, Type expectedType, String tableName)
 {
     this.environment = environment;
     this.expectedType = expectedType;
     this.tableName = tableName;
 }
Esempio n. 34
0
 public Query(IDbEnvironment environment, String query, bool isOrdered)
 {
     this.environment = environment;
     this.isOrdered   = isOrdered;
     this.dataTable   = GetDataTable(query);
 }
Esempio n. 35
0
 public StoredProcedureFixture(IDbEnvironment environment,
         String statement)
     : base(environment, statement) { }
Esempio n. 36
0
 public static DataTable GetDataTable(Symbols symbols, String query, IDbEnvironment environment)
 {
     return(GetDataTable(symbols, query, environment, 1));
 }
Esempio n. 37
0
 public IdRetrievalAccessor(IDbEnvironment environment, Type expectedType):base(expectedType)
 {
     this.environment = environment;
     this.expectedType = expectedType;
 }
Esempio n. 38
0
 public StoreQuery(IDbEnvironment environment, String query, String symbolName)
 {
     this.dbEnvironment = environment;
     this.query = query;
     this.symbolName = symbolName;
 }
Esempio n. 39
0
 public Insert(IDbEnvironment dbEnvironment)
 {
     this.dbEnvironment=dbEnvironment;
 }
Esempio n. 40
0
 public Inspect(IDbEnvironment dbEnvironment, String mode, String objName)
 {
     this.objectName= objName;
     this.mode=mode;
     this.environment = dbEnvironment;
 }
Esempio n. 41
0
 public Query(IDbEnvironment environment, String query, bool isOrdered)
     : base(GetDataTable(query, environment).Rows.GetEnumerator())
 {
     this.isOrdered = isOrdered;
 }
Esempio n. 42
0
 public DatabaseTest(IDbEnvironment environment)
 {
     this.environment = environment;
 }
Esempio n. 43
0
 public StoreQuery()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 44
0
 public ExecuteProcedure()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 45
0
 public Inspect()
 {
     this.environment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 46
0
 public ExecuteProcedure(IDbEnvironment dbEnvironment, String procedureName)
     : this(dbEnvironment, procedureName, false)
 {
 }
Esempio n. 47
0
 public Update()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 48
0
 public Insert(IDbEnvironment dbEnvironment, String tableName)
 {
     this.tableName     = tableName;
     this.dbEnvironment = dbEnvironment;
 }
Esempio n. 49
0
 public Update(IDbEnvironment dbEnvironment, String tableName)
 {
     this.tableName= tableName;
     this.dbEnvironment = dbEnvironment;
 }
Esempio n. 50
0
 public Query(IDbEnvironment environment, String query, bool isOrdered, int rsNo)
     : base(GetDataTable(query, environment, rsNo).Rows.GetEnumerator())
 {
     this.isOrdered = isOrdered;
 }
Esempio n. 51
0
 public Query(IDbEnvironment environment, String query, bool isOrdered)
 {
     this.environment = environment;
     this.isOrdered = isOrdered;
     this.dataTable = GetDataTable(query);
 }
Esempio n. 52
0
 public static DataTable GetDataTable(String query, IDbEnvironment environment)
 {
     return(GetDataTable(query, environment, 1));
 }
Esempio n. 53
0
 public Insert()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 54
0
 public Insert(IDbEnvironment dbEnvironment)
 {
     this.dbEnvironment = dbEnvironment;
 }
Esempio n. 55
0
 public ExecuteProcedure(IDbEnvironment dbEnvironment, String procedureName)
     : this(dbEnvironment, procedureName, false)
 {
 }
Esempio n. 56
0
 public QueryStats()
 {
     environment = DbEnvironmentFactory.DefaultEnvironment;
 }
Esempio n. 57
0
 /// <summary>
 /// Constructor that allows the caller to pass an IDbEnvironment instance and two symbol names
 /// that will be used to retrieve DataTable objects for comparison. Intended for use in flow mode.
 /// </summary>
 /// <param name="environment"></param>
 /// <param name="symbol1">Symbol name for the fixture symbol containing the first DataTable</param>
 /// <param name="symbol2">Symbol name for the fixture symbol containing the second DataTable</param>
 public CompareStoredQueries(IDbEnvironment environment, String symbol1, String symbol2)
 {
     this.dbEnvironment = environment;
     this.symbol1 = symbol1;
     this.symbol2 = symbol2;
 }
 /// <summary>
 /// Constructor that will use the default environment (from DbEnvironmentFactory) and
 /// read the DataTable objects to compare from symbols contained in the first
 /// two fixture arguments. Intended for use in standalone mode.
 /// </summary>
 public CompareStoredQueries()
 {
     dbEnvironment = DbEnvironmentFactory.DefaultEnvironment;
 }