/// <summary>
 /// Create a request with a search term.
 /// </summary>
 /// <returns>The request that was created.</returns>
 protected override SearchIssuesRequest CreateTermRequest(string term) =>
 new SearchIssuesRequest(term)
 {
     Archived   = Archived,
     Assignee   = Assignee,
     Author     = Author,
     Base       = Base,
     Closed     = Closed.CreateRange(),
     Commenter  = Commenter,
     Comments   = Comments.CreateRange(),
     Created    = Created.CreateRange(),
     Exclusions = Exclusions.CreateSearchIssuesRequestExclusions(),
     Head       = Head,
     In         = In.NullIfEmpty(),
     Involves   = Involves,
     Is         = Is.NullIfEmpty(),
     Labels     = ToList(Labels),
     Language   = Language,
     Mentions   = Mentions,
     Merged     = Merged.CreateRange(),
     Milestone  = Milestone,
     No         = No,
     Order      = Order,
     Repos      = GetRepositories(Repos) ?? new RepositoryCollection(),                // A null value causes a delayed bug
     SortField  = SortField,
     State      = State,
     Status     = Status,
     Team       = Team,
     Type       = Type,
     Updated    = Updated.CreateRange(),
     User       = User
 };
 /// <summary>
 /// Create a request with a search term.
 /// </summary>
 /// <returns>The request that was created.</returns>
 protected override SearchRepositoriesRequest CreateTermRequest(string term) =>
 new SearchRepositoriesRequest(term)
 {
     Archived  = Archived,
     Created   = Created.CreateRange(),
     Fork      = Fork,
     Forks     = Forks.CreateRange(),
     In        = In.NullIfEmpty(),
     Language  = Language,
     Order     = Order,
     Size      = Size.CreateRange(),
     Stars     = Stars.CreateRange(),
     SortField = SortField,
     Updated   = Updated.CreateRange(),
     User      = string.IsNullOrWhiteSpace(User) ? null : User
 };