/// <summary> /// This method is used to check the user with specified client whether exist in a coauthoring session. /// </summary> /// <param name="fileUrl">Specify the file which is locked.</param> /// <param name="clientId">Specify the client ID.</param> /// <param name="schemaLockId">Specify the schemaLock ID.</param> /// <param name="userName">Specify the user name of the user who calls cell storage service.</param> /// <param name="password">Specify the password of the user who calls cell storage service.</param> /// <param name="domain">Specify the domain of the user who calls cell storage service.</param> /// <returns>Return true is exist in the coauthoring session, otherwise return false.</returns> protected bool IsPresentInCoauthSession(string fileUrl, string clientId, string schemaLockId, string userName, string password, string domain) { this.InitializeContext(fileUrl, userName, password, domain); CoauthSubRequestType subRequest = SharedTestSuiteHelper.CreateCoauthSubRequestForMarkTransitionComplete(clientId, schemaLockId); CellStorageResponse cellResponse = this.Adapter.CellStorageRequest(fileUrl, new SubRequestType[] { subRequest }); CoauthSubResponseType response = SharedTestSuiteHelper.ExtractSubResponse <CoauthSubResponseType>(cellResponse, 0, 0, this.Site); return(SharedTestSuiteHelper.ConvertToErrorCodeType(response.ErrorCode, this.Site) == ErrorCodeType.Success); }