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; }
internal MockDbCommand(IMockCommandExecution exec) { this._exec = exec; this.parameters = new MockDbParameterCollection(); }