C# Class TestLibrary.TestUtils.MockMetaDataStorageUtil

Exibir arquivo Open project: OpenDataSpace/CmisSync

Public Methods

Method Description
AddLocalFile ( this db, IFileInfo path, string id ) : Mock
AddLocalFile ( this db, string path, string id ) : Mock
AddLocalFile ( this db, string path, string id, System.Guid uuid ) : void
AddLocalFolder ( this db, IDirectoryInfo path, string id ) : Mock
AddLocalFolder ( this db, string path, string id ) : Mock
AddLocalFolder ( this storage, string path, string id, System.Guid uuid ) : void
AddMappedFile ( this db, IMappedObject file, string localPath = null, string remotePath = null ) : void
AddMappedFolder ( this db, IMappedObject folder, string localPath = null, string remotePath = null ) : void
GetMetaStorageMockWithToken ( string token = "lastToken" ) : Mock
VerifySavedMappedObject ( this db, MappedObjectType type, string remoteId, string name, string parentId, string changeToken, Moq.Times times, bool extendedAttributeAvailable = true, System.DateTime lastLocalModification = null, System.DateTime lastRemoteModification = null, byte checksum = null, long contentSize = -1, bool ignored = false ) : void
VerifySavedMappedObject ( this db, MappedObjectType type, string remoteId, string name, string parentId, string changeToken, bool extendedAttributeAvailable = true, System.DateTime lastLocalModification = null, System.DateTime lastRemoteModification = null, byte checksum = null, long contentSize = -1, bool ignored = false ) : void
VerifyThatNoObjectIsManipulated ( this db ) : void

Private Methods

Method Description
VerifyMappedObject ( IMappedObject o, MappedObjectType type, string remoteId, string name, string parentId, string changeToken, bool extendedAttributeAvailable, System.DateTime lastLocalModification, System.DateTime lastRemoteModification, byte checksum, long contentSize, bool ignored ) : bool

Method Details

AddLocalFile() public static method

public static AddLocalFile ( this db, IFileInfo path, string id ) : Mock
db this
path IFileInfo
id string
return Mock

AddLocalFile() public static method

public static AddLocalFile ( this db, string path, string id ) : Mock
db this
path string
id string
return Mock

AddLocalFile() public static method

public static AddLocalFile ( this db, string path, string id, System.Guid uuid ) : void
db this
path string
id string
uuid System.Guid
return void

AddLocalFolder() public static method

public static AddLocalFolder ( this db, IDirectoryInfo path, string id ) : Mock
db this
path IDirectoryInfo
id string
return Mock

AddLocalFolder() public static method

public static AddLocalFolder ( this db, string path, string id ) : Mock
db this
path string
id string
return Mock

AddLocalFolder() public static method

public static AddLocalFolder ( this storage, string path, string id, System.Guid uuid ) : void
storage this
path string
id string
uuid System.Guid
return void

AddMappedFile() public static method

public static AddMappedFile ( this db, IMappedObject file, string localPath = null, string remotePath = null ) : void
db this
file IMappedObject
localPath string
remotePath string
return void

AddMappedFolder() public static method

public static AddMappedFolder ( this db, IMappedObject folder, string localPath = null, string remotePath = null ) : void
db this
folder IMappedObject
localPath string
remotePath string
return void

GetMetaStorageMockWithToken() public static method

public static GetMetaStorageMockWithToken ( string token = "lastToken" ) : Mock
token string
return Mock

VerifySavedMappedObject() public static method

public static VerifySavedMappedObject ( this db, MappedObjectType type, string remoteId, string name, string parentId, string changeToken, Moq.Times times, bool extendedAttributeAvailable = true, System.DateTime lastLocalModification = null, System.DateTime lastRemoteModification = null, byte checksum = null, long contentSize = -1, bool ignored = false ) : void
db this
type MappedObjectType
remoteId string
name string
parentId string
changeToken string
times Moq.Times
extendedAttributeAvailable bool
lastLocalModification System.DateTime
lastRemoteModification System.DateTime
checksum byte
contentSize long
ignored bool
return void

VerifySavedMappedObject() public static method

public static VerifySavedMappedObject ( this db, MappedObjectType type, string remoteId, string name, string parentId, string changeToken, bool extendedAttributeAvailable = true, System.DateTime lastLocalModification = null, System.DateTime lastRemoteModification = null, byte checksum = null, long contentSize = -1, bool ignored = false ) : void
db this
type MappedObjectType
remoteId string
name string
parentId string
changeToken string
extendedAttributeAvailable bool
lastLocalModification System.DateTime
lastRemoteModification System.DateTime
checksum byte
contentSize long
ignored bool
return void

VerifyThatNoObjectIsManipulated() public static method

public static VerifyThatNoObjectIsManipulated ( this db ) : void
db this
return void