C# Class TestLibrary.TestUtils.MockOfIFolderUtil

Mostra file Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
CreateRemoteFolderMock ( string id, string name, string path, string parentId = null, string changetoken = "changetoken", bool ignored = false ) : Mock
SetupChangeToken ( this folder, string changeToken ) : void
SetupChildren ( this folder ) : void

Setup the children of a folder.

SetupDescendants ( this folder ) : void

Setups the descendants.

SetupIgnore ( this folder ) : void
SetupIgnoreFlag ( this folder, bool ignored ) : void
SetupLastModificationDate ( this folder, System.DateTime modificationDate ) : void
VerifyUpdateLastModificationDate ( this folder, System.DateTime modificationDate, Moq.Times times, bool refresh = true ) : void
VerifyUpdateLastModificationDate ( this folder, System.DateTime modificationDate, bool refresh = true ) : void

Private Methods

Method Description
VerifyDictContainsLastModification ( object>.IDictionary dic, System.DateTime modificationDate ) : bool

Method Details

CreateRemoteFolderMock() public static method

public static CreateRemoteFolderMock ( string id, string name, string path, string parentId = null, string changetoken = "changetoken", bool ignored = false ) : Mock
id string
name string
path string
parentId string
changetoken string
ignored bool
return Mock

SetupChangeToken() public static method

public static SetupChangeToken ( this folder, string changeToken ) : void
folder this
changeToken string
return void

SetupChildren() public static method

Setup the children of a folder.
public static SetupChildren ( this folder ) : void
folder this Folder containing the children.
return void

SetupDescendants() public static method

Setups the descendants.
public static SetupDescendants ( this folder ) : void
folder this Folder to be setup.
return void

SetupIgnore() public static method

public static SetupIgnore ( this folder ) : void
folder this
return void

SetupIgnoreFlag() public static method

public static SetupIgnoreFlag ( this folder, bool ignored ) : void
folder this
ignored bool
return void

SetupLastModificationDate() public static method

public static SetupLastModificationDate ( this folder, System.DateTime modificationDate ) : void
folder this
modificationDate System.DateTime
return void

VerifyUpdateLastModificationDate() public static method

public static VerifyUpdateLastModificationDate ( this folder, System.DateTime modificationDate, Moq.Times times, bool refresh = true ) : void
folder this
modificationDate System.DateTime
times Moq.Times
refresh bool
return void

VerifyUpdateLastModificationDate() public static method

public static VerifyUpdateLastModificationDate ( this folder, System.DateTime modificationDate, bool refresh = true ) : void
folder this
modificationDate System.DateTime
refresh bool
return void