Interface IModelErrorTestBuilder
Used for testing ModelStateDictionary errors.
Inherited Members
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Models
Assembly:MyTested.AspNetCore.Mvc.ModelState.dll
Syntax
public interface IModelErrorTestBuilder : IBaseTestBuilderWithModelError
Methods
| Improve this Doc View SourceContainingError(String)
Tests whether the tested ModelStateDictionary contains error by key.
Declaration
IModelErrorDetailsTestBuilder ContainingError(string errorKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorKey | Error key to search for. |
Returns
Type | Description |
---|---|
IModelErrorDetailsTestBuilder | Test builder of IModelErrorDetailsTestBuilder type. |
ContainingNoError(String)
Tests whether the tested ModelStateDictionary does not contain error by key.
Declaration
IAndModelErrorTestBuilder ContainingNoError(string errorKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorKey | Error key to search for. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Models.IAndModelErrorTestBuilder | Test builder of IModelErrorDetailsTestBuilder<TModel> type. |