MY TESTED ASP.NET CORE MVC DOCS
  • Tutorial
  • Testing Guide
  • API Reference
  • Troubleshoot
  • About
  • API Reference
  • MyTested.AspNetCore.Mvc.Builders.Contracts.Data
  • ISessionBuilder
Show / Hide Table of Contents
  • Common Classes & Extensions
    • ActionAttributesTestBuilderViewFeaturesExtensions
    • AuthenticationScheme
    • BadRequestTestBuilderDataAnnotationsExtensions
    • BadRequestTestBuilderExtensions
    • BaseShouldReturnTestBuilderExtensions
    • BaseTestBuilderWithResponseModelExtensions
    • ComponentBuilderAuthenticationExtensions
    • ComponentBuilderCachingExtensions
    • ComponentBuilderDependencyInjectionExtensions
    • ComponentBuilderEntityFrameworkCoreExtensions
    • ComponentBuilderHttpExtensions
    • ComponentBuilderOptionsExtensions
    • ComponentBuilderRoutingExtensions
    • ComponentBuilderSessionExtensions
    • ComponentBuilderTempDataExtensions
    • ComponentShouldHaveTestBuilderCachingExtensions
    • ComponentShouldHaveTestBuilderEntityFrameworkCoreExtensions
    • ComponentShouldHaveTestBuilderHttpExtensions
    • ComponentShouldHaveTestBuilderModelStateExtensions
    • ComponentShouldHaveTestBuilderSessionExtensions
    • ComponentShouldHaveTestBuilderTempDataExtensions
    • ComponentShouldHaveTestBuilderViewBagExtensions
    • ComponentShouldHaveTestBuilderViewDataExtensions
    • ContentType
    • ControllerBuilderDataAnnotationsExtensions
    • CreatedTestBuilderExtensions
    • From
    • HttpHeader
    • HttpMethod
    • HttpRequestBuilderAuthenticationExtensions
    • HttpRequestBuilderViewFeaturesExtensions
    • HttpScheme
    • HttpStatusCode
    • LocalRedirectTestBuilderExtensions
    • ModelErrorDetailsTestBuilderViewFeaturesExtensions
    • ModelErrorTestBuilderViewFeaturesExtensions
    • MyApplication
    • MyController<TController>
    • MyMvc
    • MyRouting
    • MyViewComponent<TViewComponent>
    • RedirectTestBuilderExtensions
    • ResolvedRouteTestBuilderDataAnnotationsExtensions
    • ServiceCollectionAbstractionsExtensions
    • ServiceCollectionCachingExtensions
    • ServiceCollectionControllersExtensions
    • ServiceCollectionCoreExtensions
    • ServiceCollectionEntityFrameworkCoreExtensions
    • ServiceCollectionExtensions
    • ServiceCollectionHttpExtensions
    • ServiceCollectionOptionsExtensions
    • ServiceCollectionRoutingExtensions
    • ServiceCollectionSessionExtensions
    • ServiceCollectionTempDataExtensions
    • ServiceCollectionUniverseExtensions
    • ServiceCollectionViewComponentsExtensions
    • ServiceCollectionViewFeaturesExtensions
    • ShouldReturnTestBuilderExtensions
    • ShouldReturnTestBuilderJsonResultExtensions
    • ShouldReturnTestBuilderPartialViewResultExtensions
    • ShouldReturnTestBuilderViewComponentResultExtensions
    • ShouldReturnTestBuilderViewResultExtensions
    • ViewComponentShouldReturnTestBuilderExtensions
    • With
  • ActionResults.BadRequest
    • IBadRequestErrorMessageTestBuilder
    • IBadRequestTestBuilder
  • ActionResults.Challenge
    • IChallengeTestBuilder
  • ActionResults.Content
    • IContentTestBuilder
  • ActionResults.Created
    • ICreatedTestBuilder
  • ActionResults.File
    • IFileTestBuilder
    • IPhysicalFileTestBuilder
  • ActionResults.Forbid
    • IForbidTestBuilder
  • ActionResults.Json
    • IJsonSerializerSettingsTestBuilder
    • IJsonTestBuilder
  • ActionResults.LocalRedirect
    • ILocalRedirectTestBuilder
  • ActionResults.NotFound
    • INotFoundTestBuilder
  • ActionResults.Object
    • IObjectTestBuilder
  • ActionResults.Ok
    • IOkTestBuilder
  • ActionResults.Redirect
    • IRedirectTestBuilder
  • ActionResults.StatusCode
    • IStatusCodeTestBuilder
  • ActionResults.View
    • IViewComponentTestBuilder
    • IViewTestBuilder
  • Actions
    • IActionResultTestBuilder<TActionResult>
    • IShouldHaveTestBuilder<TActionResult>
    • IShouldReturnTestBuilder<TActionResult>
    • IVoidActionResultTestBuilder
  • Application
    • IApplicationConfigurationBuilder
  • Attributes
    • IActionAttributesTestBuilder
    • IBaseAttributesTestBuilder<TAttributesTestBuilder>
    • IControllerActionAttributesTestBuilder<TAttributesTestBuilder>
    • IControllerAttributesTestBuilder
    • IViewComponentAttributesTestBuilder
  • Authentication
    • IAuthenticationPropertiesTestBuilder
    • IClaimsIdentityBuilder
    • IClaimsPrincipalBuilder
  • Base
    • IBaseTestBuilder
    • IBaseTestBuilderWithAction
    • IBaseTestBuilderWithActionResult<TActionResult>
    • IBaseTestBuilderWithComponent
    • IBaseTestBuilderWithComponentBuilder<TBuilder>
    • IBaseTestBuilderWithComponentShouldHaveTestBuilder<TBuilder>
    • IBaseTestBuilderWithController
    • IBaseTestBuilderWithInvokedAction
    • IBaseTestBuilderWithModel<TModel>
    • IBaseTestBuilderWithModelError
    • IBaseTestBuilderWithResponseModel
    • IBaseTestBuilderWithViewComponent
    • IBaseTestBuilderWithViewComponentInvocation
    • IBaseTestBuilderWithViewComponentResult<TInvocationResult>
  • CaughtExceptions
    • IAggregateExceptionTestBuilder
    • IBaseExceptionTestBuilder
    • IExceptionMessageTestBuilder
    • IExceptionTestBuilder
    • IShouldThrowTestBuilder
  • Controllers
    • IControllerBuilder<TController>
    • IControllerTestBuilder
  • Data
    • IDataProviderEntryDetailsTestBuilder<TValue>
    • IDataProviderEntryKeyTestBuilder
    • IDataProviderEntryTestBuilder
    • IDbContextBuilder
    • IDbContextTestBuilder
    • IMemoryCacheBuilder
    • IMemoryCacheEntryBuilder
    • IMemoryCacheEntryDetailsTestBuilder<TValue>
    • IMemoryCacheEntryKeyBuilder
    • IMemoryCacheEntryKeyTestBuilder
    • IMemoryCacheEntryTestBuilder
    • IMemoryCacheTestBuilder
    • ISessionBuilder
    • ISessionTestBuilder
    • ITempDataBuilder
    • ITempDataTestBuilder
    • IViewBagTestBuilder
    • IViewDataTestBuilder
  • Http
    • IHttpRequestBuilder
    • IHttpResponseTestBuilder
    • IResponseCookieTestBuilder
  • Invocations
    • IBaseShouldReturnTestBuilder
    • IBaseShouldReturnTestBuilder<TInvocationResult, TBuilder>
    • IBaseShouldReturnTestBuilder<TInvocationResult>
    • IViewComponentResultTestBuilder<TInvocationResult>
    • IViewComponentShouldHaveTestBuilder<TInvocationResult>
    • IViewComponentShouldReturnTestBuilder<TInvocationResult>
  • Models
    • IModelDetailsTestBuilder<TModel>
    • IModelErrorDetailsTestBuilder
    • IModelErrorDetailsTestBuilder<TModel>
    • IModelErrorTestBuilder
    • IModelErrorTestBuilder<TModel>
    • IModelStateTestBuilder
  • Options
    • IOptionsBuilder
  • Routing
    • IResolvedRouteTestBuilder
    • IRouteTestBuilder
    • IShouldMapTestBuilder
  • Services
    • IServicesBuilder
  • Uri
    • IUriBuilder
    • IUriTestBuilder
  • ViewComponentResults
    • IViewTestBuilder
  • ViewComponents
    • IViewComponentBuilder<TViewComponent>
    • IViewComponentTestBuilder

Interface ISessionBuilder

Used for building Microsoft.AspNetCore.Http.ISession.

Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Data
Assembly:MyTested.AspNetCore.Mvc.Session.dll
Syntax
public interface ISessionBuilder

Methods

| Improve this Doc View Source

WithEntries(IDictionary<String, Byte[]>)

Adds byte array session entries to the built Microsoft.AspNetCore.Http.ISession.

Declaration
IAndSessionBuilder WithEntries(IDictionary<string, byte[]> entries)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.Byte[]> entries

Byte array session entries as dictionary.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder.

| Improve this Doc View Source

WithEntries(IDictionary<String, Int32>)

Adds integer session entries to the built Microsoft.AspNetCore.Http.ISession.

Declaration
IAndSessionBuilder WithEntries(IDictionary<string, int> entries)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.Int32> entries

Integer session entries as dictionary.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder.

| Improve this Doc View Source

WithEntries(IDictionary<String, String>)

Adds string session entries to the built Microsoft.AspNetCore.Http.ISession.

Declaration
IAndSessionBuilder WithEntries(IDictionary<string, string> entries)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.String> entries

String session entries as dictionary.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder.

| Improve this Doc View Source

WithEntries(Object)

Adds session entries to the built Microsoft.AspNetCore.Http.ISession.

Declaration
IAndSessionBuilder WithEntries(object entries)
Parameters
Type Name Description
System.Object entries

Session entries as anonymous object.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder.

| Improve this Doc View Source

WithEntry(String, Byte[])

Adds byte array session entry to the built Microsoft.AspNetCore.Http.ISession.

Declaration
IAndSessionBuilder WithEntry(string key, byte[] value)
Parameters
Type Name Description
System.String key

Key to set as string.

System.Byte[] value

Value to set as byte array.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder.

| Improve this Doc View Source

WithEntry(String, Int32)

Adds integer session entry to the built Microsoft.AspNetCore.Http.ISession.

Declaration
IAndSessionBuilder WithEntry(string key, int value)
Parameters
Type Name Description
System.String key

Key to set as string.

System.Int32 value

Value to set as integer.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder.

| Improve this Doc View Source

WithEntry(String, String)

Adds string session entry to the built Microsoft.AspNetCore.Http.ISession.

Declaration
IAndSessionBuilder WithEntry(string key, string value)
Parameters
Type Name Description
System.String key

Key to set as string.

System.String value

Value to set as string.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder.

| Improve this Doc View Source

WithId(String)

Sets session ID to the build Microsoft.AspNetCore.Http.ISession.

Declaration
IAndSessionBuilder WithId(string sessionId)
Parameters
Type Name Description
System.String sessionId

Session ID to set as string.

Returns
Type Description
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder

The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndSessionBuilder.

  • Improve this Doc
  • View Source
In This Article
  • Methods
    • WithEntries(IDictionary<String, Byte[]>)
    • WithEntries(IDictionary<String, Int32>)
    • WithEntries(IDictionary<String, String>)
    • WithEntries(Object)
    • WithEntry(String, Byte[])
    • WithEntry(String, Int32)
    • WithEntry(String, String)
    • WithId(String)
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX