Esempio n. 1
0
        public void MSSHDACCWS_S01_TC01_CoAuthoringIsAsked()
        {
            // Set the Co-authoring status for the specified file which is identified by the property "FileIdOfCoAuthoring".
            bool isSetCoauthoringSuccess = SHDACCWSSUTControlAdapter.SUTSetCoAuthoringStatus();

            Site.Assert.IsTrue(isSetCoauthoringSuccess, "The Co-authoring status should be set on the specified file.");

            // Get an identifier of the document which there was a co-authoring transition request for.
            string fileIdOfCoAuthoring = Common.GetConfigurationPropertyValue("fileIdOfCoAuthoring", this.Site);

            // Call method IsOnlyClient with the identifier of the document which there was a co-authoring transition request for.
            bool allCoAuthoringStatus = SHDACCWSAdapter.IsOnlyClient(Guid.Parse(fileIdOfCoAuthoring));

            // If server returns "false", then capture MS-SHDACCWS requirement: MS-SHDACCWS_R52.
            this.Site.CaptureRequirementIfIsFalse(
                allCoAuthoringStatus,
                52,
                @"[In IsOnlyClientResponse] IsOnlyClientResult : The value of this element MUST be false if there was a co-authoring transition request for the document.");
        }