/// <summary>
 /// Tests whether the action result is <see cref="Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult"/>
 /// with the same model state error as the provided one.
 /// </summary>
 /// <typeparam name="TActionResult">Type of the action result.</typeparam>
 /// <param name="shouldReturnTestBuilder">Instance of <see cref="IShouldReturnTestBuilder{TActionResult}"/> type.</param>
 /// <param name="modelState">Expected model state dictionary.</param>
 /// <returns>Test builder of <see cref="IAndTestBuilder"/> type.</returns>
 public static IAndTestBuilder UnprocessableEntity <TActionResult>(
     this IShouldReturnTestBuilder <TActionResult> shouldReturnTestBuilder,
     ModelStateDictionary modelState)
 => shouldReturnTestBuilder
 .UnprocessableEntity(result => result
                      .WithModelStateError(modelState));
 /// <summary>
 /// Tests whether the action result is <see cref="Microsoft.AspNetCore.Mvc.UnprocessableEntityObjectResult"/>
 /// with the same error object as the provided one.
 /// </summary>
 /// <typeparam name="TActionResult">Type of the action result.</typeparam>
 /// <typeparam name="TError">Expected error type.</typeparam>
 /// <param name="shouldReturnTestBuilder">Instance of <see cref="IShouldReturnTestBuilder{TActionResult}"/> type.</param>
 /// <param name="error">Expected error object.</param>
 /// <returns>Test builder of <see cref="IAndTestBuilder"/> type.</returns>
 public static IAndTestBuilder UnprocessableEntity <TActionResult, TError>(
     this IShouldReturnTestBuilder <TActionResult> shouldReturnTestBuilder,
     TError error)
 => shouldReturnTestBuilder
 .UnprocessableEntity(result => result
                      .WithError(error));