1010 /// <summary>
1111 /// Used for building <see cref="ModelStateDictionary"/>
1212 /// </summary>
13- public class ModelStateBuilder : BaseModelStateBuilder , IAndModelStateBuilder
13+ public class WithModelStateBuilder : BaseModelStateBuilder , IAndWithModelStateBuilder
1414 {
1515 /// <summary>
16- /// Initializes a new instance of the <see cref="ModelStateBuilder "/> class.
16+ /// Initializes a new instance of the <see cref="WithModelStateBuilder "/> class.
1717 /// </summary>
1818 /// <param name="actionContext"><see cref="ModelStateDictionary"/> to build.</param>
19- public ModelStateBuilder ( ActionTestContext actionContext )
19+ public WithModelStateBuilder ( ActionTestContext actionContext )
2020 : base ( actionContext )
2121 {
2222 }
2323
2424 /// <inheritdoc />
25- public IAndModelStateBuilder WithError ( string key , string errorMessage )
25+ public IAndWithModelStateBuilder WithError ( string key , string errorMessage )
2626 {
2727 this . AddError ( key , errorMessage ) ;
2828 return this ;
2929 }
3030
3131 /// <inheritdoc />
32- public IAndModelStateBuilder WithErrors ( IDictionary < string , string > errors )
32+ public IAndWithModelStateBuilder WithErrors ( IDictionary < string , string > errors )
3333 {
3434 errors . ForEach ( err => this . AddError ( err . Key , err . Value ) ) ;
3535 return this ;
3636 }
3737
3838 /// <inheritdoc />
39- public IAndModelStateBuilder WithErrors ( object errors )
39+ public IAndWithModelStateBuilder WithErrors ( object errors )
4040 {
4141 var errorsAsDictionary = new RouteValueDictionary ( errors ) ;
4242 errorsAsDictionary
@@ -46,7 +46,7 @@ public IAndModelStateBuilder WithErrors(object errors)
4646 }
4747
4848 /// <inheritdoc />
49- public IModelStateBuilder AndAlso ( ) => this ;
49+ public IWithModelStateBuilder AndAlso ( ) => this ;
5050
5151 private void AddError ( string key , string errorMessage )
5252 => this . ModelState . AddModelError ( key , errorMessage ) ;
0 commit comments