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

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 Source

WithSession<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.
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX