Microsoft.Protocols.TestSuites.MS_OFFICIALFILE.S01_GetRoutingDestinationUrlAndSubmitFile.MSOFFICIALFILE_S01_TC03_GetFinalRoutingDestinationFolderUrl_UserNoPermissions C# (CSharp) Method

MSOFFICIALFILE_S01_TC03_GetFinalRoutingDestinationFolderUrl_UserNoPermissions() private method

        public void MSOFFICIALFILE_S01_TC03_GetFinalRoutingDestinationFolderUrl_UserNoPermissions()
        {
            if (!Common.Common.IsRequirementEnabled(353, this.Site))
            {
                Site.Assume.Inconclusive("Implementation does not support the GetFinalRoutingDestinationFolderUrl operations.");
            }

            // Initial parameters to use the repository that is a storage location where the user has not permissions to store content.
            InitialPara paras = new InitialPara();
            paras.Url = this.EnableRoutingFeatureRecordsCenterServiceUrl;
            paras.UserName = this.LimitedUserName;
            paras.Domain = this.DomainName;
            paras.Password = this.LimitedUserPassword;
            this.Adapter.IntializeService(paras);

            // Properties of the file to submit which is configured in the file PropertyConfig.xml.
            RecordsRepositoryProperty[] fileProperties = this.ConstructAllRequiredProperties();

            // call GetFinalRoutingDestinationFolderUrl on a repository that is a storage location where the user has not permissions to store content, expect the server responses PermissionDeniedAtDestination.
            DocumentRoutingResult docRoutingResult =
                this.Adapter.GetFinalRoutingDestinationFolderUrl(fileProperties, this.DocumentContentTypeName, this.GetOriginalSaveLocation(this.DocumentLibraryUrlOfAppendUniqueSuffix));

            // This requirement will be partially captured, the Url to the temporary storage location will not be tested due to the temporary location is server internal behavior. 
            Site.CaptureRequirementIfAreEqual<DocumentRoutingResultType>(
                     DocumentRoutingResultType.PermissionDeniedAtDestination,
                     docRoutingResult.ResultType,
                     "MS-OFFICIALFILE",
                     71,
                     @"[In GetFinalRoutingDestinationFolderUrl] [The protocol client sends a GetFinalRoutingDestinationFolderUrlSoapIn request WSDL message, and the protocol server MUST respond with a GetFinalRoutingDestinationFolderUrlSoapOut response WSDL message, as follows:] 8. If the user does not have permissions to store content in the storage location determined by the rules, then the protocol server MUST set ResultType to ""PermissionDeniedAtDestination"" and Url to the temporary storage location and return.");

            // Verify MS-OFFICIALFILE requirement: MS-OFFICIALFILE_R125
            Site.CaptureRequirementIfAreEqual<DocumentRoutingResultType>(
                     DocumentRoutingResultType.PermissionDeniedAtDestination,
                     docRoutingResult.ResultType,
                     "MS-OFFICIALFILE",
                     125,
                     @"[In DocumentRoutingResultType] [If] Implementation-specific error validating permissions for the user at the storage location, [DocumentRoutingResultType] value is PermissionDeniedAtDestination.");
        }
S01_GetRoutingDestinationUrlAndSubmitFile