/// <summary>
 /// Tests whether the action result is <see cref="Microsoft.AspNetCore.Mvc.UnauthorizedObjectResult"/>
 /// with the same deeply equal model as the provided one.
 /// </summary>
 /// <typeparam name="TActionResult">Type of the action result.</typeparam>
 /// <typeparam name="TModel">Expected model type.</typeparam>
 /// <param name="shouldReturnTestBuilder">Instance of <see cref="IShouldReturnTestBuilder{TActionResult}"/> type.</param>
 /// <param name="model">Expected deeply equal model object.</param>
 /// <returns>Test builder of <see cref="IAndTestBuilder"/> type.</returns>
 public static IAndTestBuilder Unauthorized <TActionResult, TModel>(
     this IShouldReturnTestBuilder <TActionResult> shouldReturnTestBuilder,
     TModel model)
 => shouldReturnTestBuilder
 .Unauthorized(result => result
               .WithModel(model));