C# Класс TestLibrary.TestUtils.MockMetaDataStorageUtil

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddLocalFile() публичный статический Метод

public static AddLocalFile ( this db, IFileInfo path, string id ) : Mock
db this
path IFileInfo
id string
Результат Mock

AddLocalFile() публичный статический Метод

public static AddLocalFile ( this db, string path, string id ) : Mock
db this
path string
id string
Результат Mock

AddLocalFile() публичный статический Метод

public static AddLocalFile ( this db, string path, string id, System.Guid uuid ) : void
db this
path string
id string
uuid System.Guid
Результат void

AddLocalFolder() публичный статический Метод

public static AddLocalFolder ( this db, IDirectoryInfo path, string id ) : Mock
db this
path IDirectoryInfo
id string
Результат Mock

AddLocalFolder() публичный статический Метод

public static AddLocalFolder ( this db, string path, string id ) : Mock
db this
path string
id string
Результат Mock

AddLocalFolder() публичный статический Метод

public static AddLocalFolder ( this storage, string path, string id, System.Guid uuid ) : void
storage this
path string
id string
uuid System.Guid
Результат void

AddMappedFile() публичный статический Метод

public static AddMappedFile ( this db, IMappedObject file, string localPath = null, string remotePath = null ) : void
db this
file IMappedObject
localPath string
remotePath string
Результат void

AddMappedFolder() публичный статический Метод

public static AddMappedFolder ( this db, IMappedObject folder, string localPath = null, string remotePath = null ) : void
db this
folder IMappedObject
localPath string
remotePath string
Результат void

GetMetaStorageMockWithToken() публичный статический Метод

public static GetMetaStorageMockWithToken ( string token = "lastToken" ) : Mock
token string
Результат Mock

VerifySavedMappedObject() публичный статический Метод

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
Результат void

VerifySavedMappedObject() публичный статический Метод

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
Результат void

VerifyThatNoObjectIsManipulated() публичный статический Метод

public static VerifyThatNoObjectIsManipulated ( this db ) : void
db this
Результат void