Interface IModelDetailsTestBuilder<TModel>
Used for testing the model members.
Inherited Members
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Models
Assembly:MyTested.AspNetCore.Mvc.Models.dll
Syntax
public interface IModelDetailsTestBuilder<TModel> : IBaseTestBuilderWithComponent, IBaseTestBuilder
Type Parameters
Name | Description |
---|---|
TModel | Model from invoked method in ASP.NET Core MVC. |
Methods
| Improve this Doc View SourcePassing(Action<TModel>)
Tests whether the returned model from the invoked method passes the given assertions.
Declaration
IAndTestBuilder Passing(Action<TModel> assertions)
Parameters
Type | Name | Description |
---|---|---|
System.Action<TModel> | assertions | Method containing all assertions on the model. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.And.IAndTestBuilder | Test builder of MyTested.AspNetCore.Mvc.Builders.Contracts.And.IAndTestBuilder. |
Passing(Func<TModel, Boolean>)
Tests whether the returned model from the invoked method passes the given predicate.
Declaration
IAndTestBuilder Passing(Func<TModel, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<TModel, System.Boolean> | predicate | Predicate testing the model. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.And.IAndTestBuilder | Test builder of MyTested.AspNetCore.Mvc.Builders.Contracts.And.IAndTestBuilder. |