MY TESTED ASP.NET CORE MVC DOCS
  • Tutorial
  • Testing Guide
  • API Reference
  • Troubleshoot
  • About
  • API Reference
  • MyTested.AspNetCore.Mvc.Builders.Contracts.Data
  • ISessionTestBuilder
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 ISessionTestBuilder

Used for testing Microsoft.AspNetCore.Http.ISession.

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

Methods

| Improve this Doc View Source

ContainingEntries(IDictionary<String, Byte[]>)

Tests whether the Microsoft.AspNetCore.Http.ISession contains the provided byte array entries.

Declaration
IAndSessionTestBuilder ContainingEntries(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.IAndSessionTestBuilder

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

| Improve this Doc View Source

ContainingEntries(IDictionary<String, Int32>)

Tests whether the Microsoft.AspNetCore.Http.ISession contains the provided integer entries.

Declaration
IAndSessionTestBuilder ContainingEntries(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.IAndSessionTestBuilder

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

| Improve this Doc View Source

ContainingEntries(IDictionary<String, Object>)

Tests whether the Microsoft.AspNetCore.Http.ISession contains the provided entries.

Declaration
IAndSessionTestBuilder ContainingEntries(IDictionary<string, object> entries)
Parameters
Type Name Description
System.Collections.Generic.IDictionary<System.String, System.Object> entries

Session entries as dictionary.

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

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

| Improve this Doc View Source

ContainingEntries(IDictionary<String, String>)

Tests whether the Microsoft.AspNetCore.Http.ISession contains the provided string entries.

Declaration
IAndSessionTestBuilder ContainingEntries(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.IAndSessionTestBuilder

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

| Improve this Doc View Source

ContainingEntries(Object)

Tests whether the Microsoft.AspNetCore.Http.ISession contains the provided entries.

Declaration
IAndSessionTestBuilder ContainingEntries(object entries)
Parameters
Type Name Description
System.Object entries

Session entries as anonymous object.

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

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

| Improve this Doc View Source

ContainingEntry(String, Byte[])

Tests whether the Microsoft.AspNetCore.Http.ISession contains entry with the provided key and corresponding byte array value.

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

Key of the session entry.

System.Byte[] value

Byte array value of the session entry.

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

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

| Improve this Doc View Source

ContainingEntry(String, Int32)

Tests whether the Microsoft.AspNetCore.Http.ISession contains entry with the provided key and corresponding integer value.

Declaration
IAndSessionTestBuilder ContainingEntry(string key, int value)
Parameters
Type Name Description
System.String key

Key of the session entry.

System.Int32 value

Integer value of the session entry.

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

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

| Improve this Doc View Source

ContainingEntry(String, String)

Tests whether the Microsoft.AspNetCore.Http.ISession contains entry with the provided key and corresponding string value.

Declaration
IAndSessionTestBuilder ContainingEntry(string key, string value)
Parameters
Type Name Description
System.String key

Key of the session entry.

System.String value

String value of the session entry.

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

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

| Improve this Doc View Source

ContainingEntryWithKey(String)

Tests whether the Microsoft.AspNetCore.Http.ISession contains entry with the provided key.

Declaration
IAndSessionTestBuilder ContainingEntryWithKey(string key)
Parameters
Type Name Description
System.String key

Key of the session entry.

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

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

| Improve this Doc View Source

ContainingEntryWithValue(Byte[])

Tests whether the Microsoft.AspNetCore.Http.ISession contains entry with the provided byte array value.

Declaration
IAndSessionTestBuilder ContainingEntryWithValue(byte[] value)
Parameters
Type Name Description
System.Byte[] value

Byte array value of the session entry.

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

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

| Improve this Doc View Source

ContainingEntryWithValue(Int32)

Tests whether the Microsoft.AspNetCore.Http.ISession contains entry with the provided integer value.

Declaration
IAndSessionTestBuilder ContainingEntryWithValue(int value)
Parameters
Type Name Description
System.Int32 value

Integer value of the session entry.

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

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

| Improve this Doc View Source

ContainingEntryWithValue(String)

Tests whether the Microsoft.AspNetCore.Http.ISession contains entry with the provided string value.

Declaration
IAndSessionTestBuilder ContainingEntryWithValue(string value)
Parameters
Type Name Description
System.String value

String value of the session entry.

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

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

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