internal MockDbCommand(string command, CommandType type = CommandType.Text)
 {
     _exec       = null;
     parameters  = new MockDbParameterCollection();
     CommandText = command;
     CommandType = type;
 }
        internal MockDbCommand(IMockCommandExecution exec, DbParameterCollection collection)
            : this(exec)
        {
            if (collection is null)
            {
                throw new ArgumentNullException(nameof(collection));
            }

            if (collection is MockDbParameterCollection parameters)
            {
                this.parameters = parameters;
            }
        }
 internal MockDbConnection(IMockCommandExecution exec)
 {
     this.exec = exec;
 }
 internal MockDbCommand(IMockCommandExecution exec)
 {
     _exec       = exec;
     parameters  = new MockDbParameterCollection();
     CommandType = CommandType.Text;
 }
Beispiel #5
0
 internal MockDbCommand(IMockCommandExecution exec)
 {
     this._exec      = exec;
     this.parameters = new MockDbParameterCollection();
 }
 internal MockDbConnection(IMockCommandExecution exec)
 {
     this.exec = exec;
 }
Beispiel #7
0
 internal MockDbCommand(IMockCommandExecution exec)
 {
     this._exec = exec;
     this.parameters = new MockDbParameterCollection();
 }