Microsoft.Protocols.TestSuites.MS_DWSS.S03_ManageFolders.MSDWSS_S03_TC08_DeleteFolder_FolderNotFound C# (CSharp) Method

MSDWSS_S03_TC08_DeleteFolder_FolderNotFound() private method

private MSDWSS_S03_TC08_DeleteFolder_FolderNotFound ( ) : void
return void
        public void MSDWSS_S03_TC08_DeleteFolder_FolderNotFound()
        {
            this.dwsAdapter.ServiceUrl = Common.GetConfigurationPropertyValue("TestDWSSWebSite", this.Site);

            Error error;
            
            // Request the web site with the invalid folder URL; the server will return a FolderNotFound Error element.
            string folderUrl = Common.GetConfigurationPropertyValue("ValidDocumentLibraryName", this.Site);
            this.dwsAdapter.DeleteFolder(folderUrl, out error);
            this.Site.Assert.IsNotNull(error, "The response is expected to be an error.");
            
            // If the error is not null, it indicates that the server returns an Error element as is specified.
            this.Site.CaptureRequirement(
                1523,
                @"[In DeleteFolderResponse] Error: An Error element as specified in section 2.2.3.2.");
            
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-DWSS_R172");
            
            // Verify MS-DWSS requirement: MS-DWSS_R172
            this.Site.CaptureRequirementIfAreEqual<ErrorTypes>(
                ErrorTypes.FolderNotFound,
                error.Value,
                172,
                @"[In DeleteFolder] If the parent of the specified URL does not exist, the protocol server MUST return an Error element with a FolderNotFound error code.");
            
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-DWSS_R29");
            
            // Verify MS-DWSS requirement: MS-DWSS_R29
            this.Site.CaptureRequirementIfAreEqual<string>(
                "10",
                error.ID,
                29,
                @"[In Error] The value 10 [ID] matches the Error type FolderNotFound.");
            
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-DWSS_R320");
            
            // Verify MS-DWSS requirement: MS-DWSS_R320
            this.Site.CaptureRequirementIfIsTrue(
                string.IsNullOrEmpty(error.AccessUrl),
                320,
                @"[In Error] This attribute [AccessUrl] MUST NOT be present when the Error element contains FolderNotFound error code.");
        }