/// <summary>
 /// Sets an authenticated <see cref="Microsoft.AspNetCore.Http.HttpContext.User"/> to the built request with the provided identifier (Id), username and optional roles.
 /// </summary>
 /// <param name="httpRequestBuilder">Instance of <see cref="IHttpRequestBuilder"/> type.</param>
 /// <param name="identifier">Value of the identifier (Id) claim - <see cref="System.Security.Claims.ClaimTypes.NameIdentifier"/>.</param>
 /// <param name="username">Value of the username claim. Default claim type is <see cref="System.Security.Claims.ClaimTypes.Name"/>.</param>
 /// <param name="roles">Collection of role names to add.</param>
 /// <returns>The same component builder.</returns>
 public static IAndHttpRequestBuilder WithUser(
     this IHttpRequestBuilder httpRequestBuilder,
     string identifier,
     string username,
     params string[] roles)
 => httpRequestBuilder
 .WithUser(identifier, username, roles.AsEnumerable());
 /// <summary>
 /// Sets an authenticated <see cref="Microsoft.AspNetCore.Http.HttpContext.User"/> to the built request with "TestId" identifier (Id) and the provided username and roles.
 /// </summary>
 /// <param name="httpRequestBuilder">Instance of <see cref="IHttpRequestBuilder"/> type.</param>
 /// <param name="username">Value of the username claim. Default claim type is <see cref="System.Security.Claims.ClaimTypes.Name"/>.</param>
 /// <param name="roles">Collection of role names to add.</param>
 /// <returns>The same component builder.</returns>
 public static IAndHttpRequestBuilder WithUser(
     this IHttpRequestBuilder httpRequestBuilder,
     string username,
     IEnumerable <string> roles)
 => httpRequestBuilder
 .WithUser(user => user
           .WithUsername(username)
           .InRoles(roles));
 /// <summary>
 /// Sets an authenticated <see cref="Microsoft.AspNetCore.Http.HttpContext.User"/> to the built request with "TestId" identifier (Id) and the provided username and roles.
 /// </summary>
 /// <param name="httpRequestBuilder">Instance of <see cref="IHttpRequestBuilder"/> type.</param>
 /// <param name="roles">Collection of role names to add.</param>
 /// <returns>The same component builder.</returns>
 public static IAndHttpRequestBuilder WithUser(
     this IHttpRequestBuilder httpRequestBuilder,
     params string[] roles)
 => httpRequestBuilder
 .WithUser(user => user
           .InRoles(roles));