MY TESTED ASP.NET CORE MVC DOCS
Show / Hide Table of Contents

Interface IModelDetailsTestBuilder<TModel>

Used for testing the model members.

Inherited Members
IBaseTestBuilderWithComponent.ShouldPassForThe<TComponent>(Action<TComponent>)
IBaseTestBuilderWithComponent.ShouldPassForThe<TComponent>(Func<TComponent, Boolean>)
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 Source

Passing(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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX