Table of Contents

Class FakeMethods

Namespace
CMS.Tests
Assembly
CMS.Tests.dll

Class providing methods for faking the data

[Obsolete("Class was not intended for public use and will be removed in the next version.")]
public class FakeMethods : IFakeMethods
Inheritance
object
FakeMethods
Implements
Extension Methods

Constructors

FakeMethods(AutomatedTestsWithData)

Constructor

public FakeMethods(AutomatedTestsWithData parentTests)

Parameters

parentTests AutomatedTestsWithData

Parent unit tests

Properties

ParentTests

Parent tests

public AutomatedTestsWithData ParentTests { get; set; }

Property Value

AutomatedTestsWithData

Methods

InfoProvider<TInfo, TProvider>()

Fakes the data for the given info and provider

public IInfoProviderFake<TInfo, TProvider> InfoProvider<TInfo, TProvider>() where TInfo : AbstractInfoBase<TInfo>, IInfo, new() where TProvider : AbstractInfoProvider<TInfo, TProvider>, new()

Returns

IInfoProviderFake<TInfo, TProvider>

Type Parameters

TInfo
TProvider

Info<TInfo>(InfoFakeSettings)

Fakes the data for the given info

public IInfoFake<TInfo> Info<TInfo>(InfoFakeSettings settings = null) where TInfo : BaseInfo, IInfo, new()

Parameters

settings InfoFakeSettings

Fake settings

Returns

IInfoFake<TInfo>

Type Parameters

TInfo