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