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