C# Class TestLibrary.TestUtils.MockSessionUtil

Show file Open project: OpenDataSpace/CmisSync Class Usage Examples

Public Methods

Method Description
AddRemoteObject ( this session, ICmisObject remoteObject ) : Mock
AddRemoteObjects ( this session ) : Mock
CreateCmisFolder ( List fileNames = null, List folderNames = null, bool contentStream = false ) : Mock
EnsureSelectiveIgnoreSupportIsAvailable ( this session ) : void
EnsureServerCanUpdateModificationDate ( this session ) : void
GenerateChangeEvent ( DotCMIS type, string objectId ) : Mock
GetSessionMockReturning3Changesin2Batches ( DotCMIS type = DotCMIS.Enums.ChangeType.Updated, bool overlapping = false ) : Mock
GetSessionMockReturningDocumentChange ( DotCMIS type, string id, string documentContentStreamId = null ) : Mock
GetSessionMockReturningFolderChange ( DotCMIS type, string id = "folderid", string folderName = "name", string path = "path", string parentId = "", string changetoken = "changetoken" ) : Mock
PrepareSessionMockForSingleChange ( DotCMIS type, string objectId = "objectId", string changeLogToken = "token", string latestChangeLogToken = "latestChangeLogToken" ) : Mock
SetupChangeLogToken ( this session, string changeLogToken ) : Mock
SetupCreateOperationContext ( this session ) : Mock
SetupDefaultOperationContext ( this session, bool includeAcls, bool includeActions ) : Mock
SetupPermissions ( this session, SupportedPermissions supportedPermissions = SupportedPermissions.Basic ) : Mock
SetupPrivateWorkingCopyCapability ( this session, bool isPwcUpdateable = true ) : Mock
SetupRepositoryInfo ( this session, string productName, string productVersion, string vendorName ) : Mock
SetupSessionDefaultValues ( this session ) : Mock
SetupTypeSystem ( this session, bool serverCanModifyLastModificationDate = true, bool supportsSelectiveIgnore = true ) : Mock
VerifyThatAllDefaultValuesAreSet ( this session ) : void
VerifyThatCachingIsDisabled ( this session ) : void
VerifyThatCrawlValuesAreSet ( this session ) : void
VerifyThatFilterContainsPath ( this session ) : void

Private Methods

Method Description
GenerateSingleChangeListMock ( DotCMIS type, string objectId = "objId" ) : List

Method Details

AddRemoteObject() public static method

public static AddRemoteObject ( this session, ICmisObject remoteObject ) : Mock
session this
remoteObject ICmisObject
return Mock

AddRemoteObjects() public static method

public static AddRemoteObjects ( this session ) : Mock
session this
return Mock

CreateCmisFolder() public static method

public static CreateCmisFolder ( List fileNames = null, List folderNames = null, bool contentStream = false ) : Mock
fileNames List
folderNames List
contentStream bool
return Mock

EnsureSelectiveIgnoreSupportIsAvailable() public static method

public static EnsureSelectiveIgnoreSupportIsAvailable ( this session ) : void
session this
return void

EnsureServerCanUpdateModificationDate() public static method

public static EnsureServerCanUpdateModificationDate ( this session ) : void
session this
return void

GenerateChangeEvent() public static method

public static GenerateChangeEvent ( DotCMIS type, string objectId ) : Mock
type DotCMIS
objectId string
return Mock

GetSessionMockReturning3Changesin2Batches() public static method

public static GetSessionMockReturning3Changesin2Batches ( DotCMIS type = DotCMIS.Enums.ChangeType.Updated, bool overlapping = false ) : Mock
type DotCMIS
overlapping bool
return Mock

GetSessionMockReturningDocumentChange() public static method

public static GetSessionMockReturningDocumentChange ( DotCMIS type, string id, string documentContentStreamId = null ) : Mock
type DotCMIS
id string
documentContentStreamId string
return Mock

GetSessionMockReturningFolderChange() public static method

public static GetSessionMockReturningFolderChange ( DotCMIS type, string id = "folderid", string folderName = "name", string path = "path", string parentId = "", string changetoken = "changetoken" ) : Mock
type DotCMIS
id string
folderName string
path string
parentId string
changetoken string
return Mock

PrepareSessionMockForSingleChange() public static method

public static PrepareSessionMockForSingleChange ( DotCMIS type, string objectId = "objectId", string changeLogToken = "token", string latestChangeLogToken = "latestChangeLogToken" ) : Mock
type DotCMIS
objectId string
changeLogToken string
latestChangeLogToken string
return Mock

SetupChangeLogToken() public static method

public static SetupChangeLogToken ( this session, string changeLogToken ) : Mock
session this
changeLogToken string
return Mock

SetupCreateOperationContext() public static method

public static SetupCreateOperationContext ( this session ) : Mock
session this
return Mock

SetupDefaultOperationContext() public static method

public static SetupDefaultOperationContext ( this session, bool includeAcls, bool includeActions ) : Mock
session this
includeAcls bool
includeActions bool
return Mock

SetupPermissions() public static method

public static SetupPermissions ( this session, SupportedPermissions supportedPermissions = SupportedPermissions.Basic ) : Mock
session this
supportedPermissions SupportedPermissions
return Mock

SetupPrivateWorkingCopyCapability() public static method

public static SetupPrivateWorkingCopyCapability ( this session, bool isPwcUpdateable = true ) : Mock
session this
isPwcUpdateable bool
return Mock

SetupRepositoryInfo() public static method

public static SetupRepositoryInfo ( this session, string productName, string productVersion, string vendorName ) : Mock
session this
productName string
productVersion string
vendorName string
return Mock

SetupSessionDefaultValues() public static method

public static SetupSessionDefaultValues ( this session ) : Mock
session this
return Mock

SetupTypeSystem() public static method

public static SetupTypeSystem ( this session, bool serverCanModifyLastModificationDate = true, bool supportsSelectiveIgnore = true ) : Mock
session this
serverCanModifyLastModificationDate bool
supportsSelectiveIgnore bool
return Mock

VerifyThatAllDefaultValuesAreSet() public static method

public static VerifyThatAllDefaultValuesAreSet ( this session ) : void
session this
return void

VerifyThatCachingIsDisabled() public static method

public static VerifyThatCachingIsDisabled ( this session ) : void
session this
return void

VerifyThatCrawlValuesAreSet() public static method

public static VerifyThatCrawlValuesAreSet ( this session ) : void
session this
return void

VerifyThatFilterContainsPath() public static method

public static VerifyThatFilterContainsPath ( this session ) : void
session this
return void