Interface IInfoProviderFake<TInfo, TProvider>
Interface for automated tests fake of the info provider
public interface IInfoProviderFake<TInfo, out TProvider> : IFake where TInfo : AbstractInfoBase<TInfo>, IInfo, new()
Type Parameters
TInfo
TProvider
- Inherited Members
- Extension Methods
Properties
ProviderObject
Faked provider object
ITestableProvider ProviderObject { get; }
Property Value
- ITestableProvider
SourceData
Source data for the provider
DataSet SourceData { get; }
Property Value
- DataSet
Methods
IncludeData(params TInfo[])
Includes the given data to the source items while keeping the existing data intact
void IncludeData(params TInfo[] items)
Parameters
items
TInfo[]Items to include
WithCMSDatabaseSourceName()
Ensures that the CMS database source name is used for the faked data
IInfoProviderFake<TInfo, out TProvider> WithCMSDatabaseSourceName()
Returns
- IInfoProviderFake<TInfo, TProvider>
WithData(params TInfo[])
Fakes the data for the given provider. Resets any previous data and only includes the given source items.
IInfoProviderFake<TInfo, out TProvider> WithData(params TInfo[] sourceItems)
Parameters
sourceItems
TInfo[]
Returns
- IInfoProviderFake<TInfo, TProvider>