Class ComponentBuilderOptionsExtensions
Contains configuration options extension methods for IBaseTestBuilderWithComponentBuilder<TBuilder>.
Inheritance
System.Object
ComponentBuilderOptionsExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.Options.dll
Syntax
public static class ComponentBuilderOptionsExtensions
Methods
| Improve this Doc View SourceWithOptions<TBuilder>(IBaseTestBuilderWithComponentBuilder<TBuilder>, Action<IOptionsBuilder>)
Sets initial values to the configuration options on the tested component.
Declaration
public static TBuilder WithOptions<TBuilder>(this IBaseTestBuilderWithComponentBuilder<TBuilder> builder, Action<IOptionsBuilder> optionsBuilder)where TBuilder : IBaseTestBuilder
Parameters
Type | Name | Description |
---|---|---|
IBaseTestBuilderWithComponentBuilder<TBuilder> | builder | Instance of IBaseTestBuilderWithComponentBuilder<TBuilder> type. |
System.Action<IOptionsBuilder> | optionsBuilder | Action setting the configuration options by using IOptionsBuilder. |
Returns
Type | Description |
---|---|
TBuilder | The same component builder. |
Type Parameters
Name | Description |
---|---|
TBuilder | Class representing ASP.NET Core MVC test builder. |