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