C# 클래스 TestLibrary.TestUtils.MockSessionUtil

파일 보기 프로젝트 열기: OpenDataSpace/CmisSync 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GenerateSingleChangeListMock ( DotCMIS type, string objectId = "objId" ) : List

메소드 상세

AddRemoteObject() 공개 정적인 메소드

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

AddRemoteObjects() 공개 정적인 메소드

public static AddRemoteObjects ( this session ) : Mock
session this
리턴 Mock

CreateCmisFolder() 공개 정적인 메소드

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

EnsureSelectiveIgnoreSupportIsAvailable() 공개 정적인 메소드

public static EnsureSelectiveIgnoreSupportIsAvailable ( this session ) : void
session this
리턴 void

EnsureServerCanUpdateModificationDate() 공개 정적인 메소드

public static EnsureServerCanUpdateModificationDate ( this session ) : void
session this
리턴 void

GenerateChangeEvent() 공개 정적인 메소드

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

GetSessionMockReturning3Changesin2Batches() 공개 정적인 메소드

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

GetSessionMockReturningDocumentChange() 공개 정적인 메소드

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

GetSessionMockReturningFolderChange() 공개 정적인 메소드

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
리턴 Mock

PrepareSessionMockForSingleChange() 공개 정적인 메소드

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

SetupChangeLogToken() 공개 정적인 메소드

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

SetupCreateOperationContext() 공개 정적인 메소드

public static SetupCreateOperationContext ( this session ) : Mock
session this
리턴 Mock

SetupDefaultOperationContext() 공개 정적인 메소드

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

SetupPermissions() 공개 정적인 메소드

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

SetupPrivateWorkingCopyCapability() 공개 정적인 메소드

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

SetupRepositoryInfo() 공개 정적인 메소드

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

SetupSessionDefaultValues() 공개 정적인 메소드

public static SetupSessionDefaultValues ( this session ) : Mock
session this
리턴 Mock

SetupTypeSystem() 공개 정적인 메소드

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

VerifyThatAllDefaultValuesAreSet() 공개 정적인 메소드

public static VerifyThatAllDefaultValuesAreSet ( this session ) : void
session this
리턴 void

VerifyThatCachingIsDisabled() 공개 정적인 메소드

public static VerifyThatCachingIsDisabled ( this session ) : void
session this
리턴 void

VerifyThatCrawlValuesAreSet() 공개 정적인 메소드

public static VerifyThatCrawlValuesAreSet ( this session ) : void
session this
리턴 void

VerifyThatFilterContainsPath() 공개 정적인 메소드

public static VerifyThatFilterContainsPath ( this session ) : void
session this
리턴 void