Interface ITempDataTestBuilder
Used for testing Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary.
Namespace:MyTested.AspNetCore.Mvc.Builders.Contracts.Data
Assembly:MyTested.AspNetCore.Mvc.TempData.dll
Syntax
public interface ITempDataTestBuilder
Methods
| Improve this Doc View SourceContainingEntries(IDictionary<String, Object>)
Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains the provided entries.
Declaration
IAndTempDataTestBuilder ContainingEntries(IDictionary<string, object> entries)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> | entries | Dictionary of temp data entries. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder. |
ContainingEntries(Object)
Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains the provided entries.
Declaration
IAndTempDataTestBuilder ContainingEntries(object entries)
Parameters
Type | Name | Description |
---|---|---|
System.Object | entries | Anonymous object of temp data entries. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder. |
ContainingEntry(Action<IDataProviderEntryKeyTestBuilder>)
Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains specific entry by using a builder.
Declaration
IAndTempDataTestBuilder ContainingEntry(Action<IDataProviderEntryKeyTestBuilder> tempDataEntryTestBuilder)
Parameters
Type | Name | Description |
---|---|---|
System.Action<IDataProviderEntryKeyTestBuilder> | tempDataEntryTestBuilder | Builder for setting specific Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary entry tests. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder. |
ContainingEntry(String, Object)
Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains entry with the provided key and corresponding value.
Declaration
IAndTempDataTestBuilder ContainingEntry(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of the temp data entry. |
System.Object | value | Value of the temp data entry. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder. |
ContainingEntryOfType<TValue>()
Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains entry with value of the provided type.
Declaration
IAndTempDataTestBuilder ContainingEntryOfType<TValue>()
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder. |
Type Parameters
Name | Description |
---|---|
TValue | Type of the temp data entry value. |
ContainingEntryOfType<TValue>(String)
Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains entry with value of the provided type and the given key.
Declaration
IAndTempDataTestBuilder ContainingEntryOfType<TValue>(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of the temp data entry. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder. |
Type Parameters
Name | Description |
---|---|
TValue | Type of the temp data entry value. |
ContainingEntryWithKey(String)
Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains entry with the provided key.
Declaration
IAndTempDataTestBuilder ContainingEntryWithKey(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Key of the temp data entry. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder. |
ContainingEntryWithValue<TValue>(TValue)
Tests whether the Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary contains entry with the provided value.
Declaration
IAndTempDataTestBuilder ContainingEntryWithValue<TValue>(TValue value)
Parameters
Type | Name | Description |
---|---|---|
TValue | value | Value of the temp data entry. |
Returns
Type | Description |
---|---|
MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder | The same MyTested.AspNetCore.Mvc.Builders.Contracts.Data.IAndTempDataTestBuilder. |
Type Parameters
Name | Description |
---|---|
TValue | Type of the temp data entry value. |