1 write to HasError
Microsoft.AspNetCore.Mvc.Abstractions (1)
Formatters\InputFormatterResult.cs (1)
18
HasError
= 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)
157
if (result.
HasError
)
Microsoft.AspNetCore.Mvc.Core.Test (23)
Formatters\InputFormatterTest.cs (1)
427
Assert.False(result.
HasError
);
Formatters\JsonInputFormatterTestBase.cs (19)
79
Assert.False(result.
HasError
);
100
Assert.False(result.
HasError
);
121
Assert.False(result.
HasError
);
146
Assert.True(result.
HasError
);
173
Assert.True(result.
HasError
);
201
Assert.True(result.
HasError
);
227
Assert.False(result.
HasError
);
248
Assert.False(result.
HasError
);
270
Assert.False(result.
HasError
);
302
Assert.False(result.
HasError
);
325
Assert.True(result.
HasError
, "Model should have had an error!");
351
Assert.True(result.
HasError
, "Model should have had an error!");
378
Assert.True(result.
HasError
, "Model should have produced an error!");
403
Assert.True(result.
HasError
);
432
Assert.True(result.
HasError
);
462
Assert.False(result.
HasError
);
485
Assert.True(result.
HasError
, "Model should have had an error!");
509
Assert.True(result.
HasError
, "Model should have had an error!");
533
Assert.True(result.
HasError
, "Model should have had an error!");
Formatters\SystemTextJsonInputFormatterTest.cs (2)
153
Assert.True(result.
HasError
);
175
Assert.True(result.
HasError
);
Formatters\TextInputFormatterTest.cs (1)
33
Assert.True(result.
HasError
);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (26)
XmlDataContractSerializerInputFormatterTest.cs (14)
158
Assert.False(result.
HasError
);
189
Assert.False(result.
HasError
);
222
Assert.False(result.
HasError
);
257
Assert.False(result.
HasError
);
289
Assert.False(result.
HasError
);
316
Assert.False(result.
HasError
);
350
Assert.False(result.
HasError
);
382
Assert.False(result.
HasError
);
408
Assert.False(result.
HasError
);
470
Assert.False(result.
HasError
);
553
Assert.False(result.
HasError
);
591
Assert.False(result.
HasError
);
651
Assert.False(result.
HasError
);
710
Assert.False(result.
HasError
);
XmlSerializerInputFormatterTest.cs (12)
63
Assert.False(result.
HasError
);
100
Assert.False(result.
HasError
);
136
Assert.False(result.
HasError
);
172
Assert.False(result.
HasError
);
216
Assert.False(result.
HasError
);
352
Assert.False(result.
HasError
);
386
Assert.False(result.
HasError
);
415
Assert.False(result.
HasError
);
487
Assert.False(result.
HasError
);
573
Assert.False(result.
HasError
);
612
Assert.False(result.
HasError
);
644
Assert.False(result.
HasError
);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonPatchInputFormatter.cs (1)
69
if (!result.
HasError
)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (38)
NewtonsoftJsonInputFormatterTest.cs (13)
50
Assert.False(result.
HasError
);
86
Assert.False(result.
HasError
);
124
Assert.False(result.
HasError
);
134
Assert.False(result.
HasError
);
169
Assert.True(result.
HasError
);
246
Assert.True(result.
HasError
);
301
Assert.True(result.
HasError
);
334
Assert.True(result.
HasError
);
366
Assert.True(result.
HasError
);
397
Assert.True(result.
HasError
);
428
Assert.True(result.
HasError
);
514
Assert.False(result.
HasError
);
557
Assert.False(result.
HasError
);
NewtonsoftJsonPatchInputFormatterTest.cs (6)
49
Assert.False(result.
HasError
);
88
Assert.False(result.
HasError
);
99
Assert.False(result.
HasError
);
119
Assert.False(result.
HasError
);
143
Assert.False(result.
HasError
);
218
Assert.True(result.
HasError
);
src\Mvc\Mvc.Core\test\Formatters\JsonInputFormatterTestBase.cs (19)
79
Assert.False(result.
HasError
);
100
Assert.False(result.
HasError
);
121
Assert.False(result.
HasError
);
146
Assert.True(result.
HasError
);
173
Assert.True(result.
HasError
);
201
Assert.True(result.
HasError
);
227
Assert.False(result.
HasError
);
248
Assert.False(result.
HasError
);
270
Assert.False(result.
HasError
);
302
Assert.False(result.
HasError
);
325
Assert.True(result.
HasError
, "Model should have had an error!");
351
Assert.True(result.
HasError
, "Model should have had an error!");
378
Assert.True(result.
HasError
, "Model should have produced an error!");
403
Assert.True(result.
HasError
);
432
Assert.True(result.
HasError
);
462
Assert.False(result.
HasError
);
485
Assert.True(result.
HasError
, "Model should have had an error!");
509
Assert.True(result.
HasError
, "Model should have had an error!");
533
Assert.True(result.
HasError
, "Model should have had an error!");