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

Interface IControllerTestBuilder

Used for testing controllers.

Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Controllers
Assembly:MyTested.AspNetCore.Mvc.Controllers.dll
Syntax
public interface IControllerTestBuilder

Methods

| Improve this Doc View Source

Attributes(Action<IControllerAttributesTestBuilder>)

Tests whether the controller has specific attributes.

Declaration
IBaseTestBuilderWithController Attributes(Action<IControllerAttributesTestBuilder> attributesTestBuilder)
Parameters
Type Name Description
System.Action<IControllerAttributesTestBuilder> attributesTestBuilder

Builder for testing specific attributes on the controller.

Returns
Type Description
IBaseTestBuilderWithController

Test builder of IBaseTestBuilderWithController type.

| Improve this Doc View Source

Attributes(Nullable<Int32>)

Tests whether the controller has at least 1 attribute of any type.

Declaration
IBaseTestBuilderWithController Attributes(int ? withTotalNumberOf = null)
Parameters
Type Name Description
System.Nullable<System.Int32> withTotalNumberOf

Optional parameter specifying the exact total number of attributes on the tested controller.

Returns
Type Description
IBaseTestBuilderWithController

Test builder of IBaseTestBuilderWithController type.

| Improve this Doc View Source

NoAttributes()

Tests whether the controller has no attributes of any type.

Declaration
IBaseTestBuilderWithController NoAttributes()
Returns
Type Description
IBaseTestBuilderWithController

Test builder of IBaseTestBuilderWithController type.

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