/// <summary>
 /// Get user by user name
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='username'>
 /// The name that needs to be fetched. Use user1 for testing.
 /// </param>
 public static User GetUserByName(this ISwaggerPetstoreV2 operations, string username)
 {
     return(operations.GetUserByNameAsync(username).GetAwaiter().GetResult());
 }