1 write to HasError
Microsoft.AspNetCore.Mvc.Abstractions (1)
Formatters\InputFormatterResult.cs (1)
18HasError = hasError;
94 references to HasError
Microsoft.AspNetCore.Mvc.Abstractions (5)
Formatters\InputFormatterResult.cs (5)
41/// <c>null</c> if <see cref="HasError"/> is <c>true</c>. 51/// operation failed i.e. with <see cref="HasError"/> <c>true</c>. 64/// <see cref="IInputFormatter.ReadAsync"/> operation failed i.e. with <see cref="HasError"/> <c>true</c>. 78/// operation succeeded i.e. with <see cref="HasError"/> <c>false</c>. 92/// <see cref="IInputFormatter.ReadAsync"/> operation succeeded i.e. with <see cref="HasError"/> <c>false</c>.
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\BodyModelBinder.cs (1)
157if (result.HasError)
Microsoft.AspNetCore.Mvc.Core.Test (23)
Formatters\InputFormatterTest.cs (1)
427Assert.False(result.HasError);
Formatters\JsonInputFormatterTestBase.cs (19)
79Assert.False(result.HasError); 100Assert.False(result.HasError); 121Assert.False(result.HasError); 146Assert.True(result.HasError); 173Assert.True(result.HasError); 201Assert.True(result.HasError); 227Assert.False(result.HasError); 248Assert.False(result.HasError); 270Assert.False(result.HasError); 302Assert.False(result.HasError); 325Assert.True(result.HasError, "Model should have had an error!"); 351Assert.True(result.HasError, "Model should have had an error!"); 378Assert.True(result.HasError, "Model should have produced an error!"); 403Assert.True(result.HasError); 432Assert.True(result.HasError); 462Assert.False(result.HasError); 485Assert.True(result.HasError, "Model should have had an error!"); 509Assert.True(result.HasError, "Model should have had an error!"); 533Assert.True(result.HasError, "Model should have had an error!");
Formatters\SystemTextJsonInputFormatterTest.cs (2)
153Assert.True(result.HasError); 175Assert.True(result.HasError);
Formatters\TextInputFormatterTest.cs (1)
33Assert.True(result.HasError);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (26)
XmlDataContractSerializerInputFormatterTest.cs (14)
158Assert.False(result.HasError); 189Assert.False(result.HasError); 222Assert.False(result.HasError); 257Assert.False(result.HasError); 289Assert.False(result.HasError); 316Assert.False(result.HasError); 350Assert.False(result.HasError); 382Assert.False(result.HasError); 408Assert.False(result.HasError); 470Assert.False(result.HasError); 553Assert.False(result.HasError); 591Assert.False(result.HasError); 651Assert.False(result.HasError); 710Assert.False(result.HasError);
XmlSerializerInputFormatterTest.cs (12)
63Assert.False(result.HasError); 100Assert.False(result.HasError); 136Assert.False(result.HasError); 172Assert.False(result.HasError); 216Assert.False(result.HasError); 352Assert.False(result.HasError); 386Assert.False(result.HasError); 415Assert.False(result.HasError); 487Assert.False(result.HasError); 573Assert.False(result.HasError); 612Assert.False(result.HasError); 644Assert.False(result.HasError);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonPatchInputFormatter.cs (1)
69if (!result.HasError)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (38)
NewtonsoftJsonInputFormatterTest.cs (13)
50Assert.False(result.HasError); 86Assert.False(result.HasError); 124Assert.False(result.HasError); 134Assert.False(result.HasError); 169Assert.True(result.HasError); 246Assert.True(result.HasError); 301Assert.True(result.HasError); 334Assert.True(result.HasError); 366Assert.True(result.HasError); 397Assert.True(result.HasError); 428Assert.True(result.HasError); 514Assert.False(result.HasError); 557Assert.False(result.HasError);
NewtonsoftJsonPatchInputFormatterTest.cs (6)
49Assert.False(result.HasError); 88Assert.False(result.HasError); 99Assert.False(result.HasError); 119Assert.False(result.HasError); 143Assert.False(result.HasError); 218Assert.True(result.HasError);
src\Mvc\Mvc.Core\test\Formatters\JsonInputFormatterTestBase.cs (19)
79Assert.False(result.HasError); 100Assert.False(result.HasError); 121Assert.False(result.HasError); 146Assert.True(result.HasError); 173Assert.True(result.HasError); 201Assert.True(result.HasError); 227Assert.False(result.HasError); 248Assert.False(result.HasError); 270Assert.False(result.HasError); 302Assert.False(result.HasError); 325Assert.True(result.HasError, "Model should have had an error!"); 351Assert.True(result.HasError, "Model should have had an error!"); 378Assert.True(result.HasError, "Model should have produced an error!"); 403Assert.True(result.HasError); 432Assert.True(result.HasError); 462Assert.False(result.HasError); 485Assert.True(result.HasError, "Model should have had an error!"); 509Assert.True(result.HasError, "Model should have had an error!"); 533Assert.True(result.HasError, "Model should have had an error!");