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

Interface IBaseAttributesTestBuilder<TAttributesTestBuilder>

Base interface for all attribute test builders.

Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes
Assembly:MyTested.AspNetCore.Mvc.Abstractions.dll
Syntax
public interface IBaseAttributesTestBuilder<TAttributesTestBuilder>
Type Parameters
Name Description
TAttributesTestBuilder Type of attributes test builder to use as a return type for common methods.

Methods

| Improve this Doc View Source

ContainingAttributeOfType<TAttribute>()

Tests whether the collected attributes contain the provided attribute type.

Declaration
TAttributesTestBuilder ContainingAttributeOfType<TAttribute>()where TAttribute : Attribute
Returns
Type Description
TAttributesTestBuilder

The same attributes test builder.

Type Parameters
Name Description
TAttribute Type of expected attribute.
| Improve this Doc View Source

PassingFor<TAttribute>(Action<TAttribute>)

Tests whether the collected attributes contain the provided attribute type passing the given assertions.

Declaration
TAttributesTestBuilder PassingFor<TAttribute>(Action<TAttribute> assertions)where TAttribute : Attribute
Parameters
Type Name Description
System.Action<TAttribute> assertions

Action containing assertions on the provided attribute.

Returns
Type Description
TAttributesTestBuilder

The same attributes test builder.

Type Parameters
Name Description
TAttribute Type of expected attribute.
| Improve this Doc View Source

PassingFor<TAttribute>(Func<TAttribute, Boolean>)

Tests whether the collected attributes contain the provided attribute type passing the given predicate.

Declaration
TAttributesTestBuilder PassingFor<TAttribute>(Func<TAttribute, bool> predicate)where TAttribute : Attribute
Parameters
Type Name Description
System.Func<TAttribute, System.Boolean> predicate

Predicate testing the provided attribute.

Returns
Type Description
TAttributesTestBuilder

The same attributes test builder.

Type Parameters
Name Description
TAttribute Type of expected attribute.
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX