/// <summary> /// Tests whether the action result is <see cref="Microsoft.AspNetCore.Mvc.NotFoundObjectResult"/> /// 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 NotFound <TActionResult, TModel>( this IShouldReturnTestBuilder <TActionResult> shouldReturnTestBuilder, TModel model) => shouldReturnTestBuilder .NotFound(result => result .WithModel(model));