Class ComponentBuilderSessionExtensions
Contains Microsoft.AspNetCore.Http.ISession extension methods for IBaseTestBuilderWithComponentBuilder<TBuilder>.
Inheritance
System.Object
ComponentBuilderSessionExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.Session.dll
Syntax
public static class ComponentBuilderSessionExtensions
Methods
| Improve this Doc View SourceWithSession<TBuilder>(IBaseTestBuilderWithComponentBuilder<TBuilder>, Action<ISessionBuilder>)
Sets initial values to the HTTP Microsoft.AspNetCore.Http.ISession.
Declaration
public static TBuilder WithSession<TBuilder>(this IBaseTestBuilderWithComponentBuilder<TBuilder> builder, Action<ISessionBuilder> sessionBuilder)where TBuilder : IBaseTestBuilder
Parameters
| Type | Name | Description |
|---|---|---|
| IBaseTestBuilderWithComponentBuilder<TBuilder> | builder | Instance of IBaseTestBuilderWithComponentBuilder<TBuilder> type. |
| System.Action<ISessionBuilder> | sessionBuilder | Action setting the Microsoft.AspNetCore.Http.ISession values by using ISessionBuilder. |
Returns
| Type | Description |
|---|---|
| TBuilder | The same component builder. |
Type Parameters
| Name | Description |
|---|---|
| TBuilder | Class representing ASP.NET Core MVC test builder. |