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 SourceContainingEntries(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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |