/// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="serviceContext">An <see cref="OrganizationServiceContext"/>.</param>
        /// <param name="securityProvider">An <see cref="ICrmEntitySecurityProvider"/>.</param>
        /// <param name="httpContext">An <see cref="HttpContextBase"/>.</param>
        /// <param name="website">An <see cref="EntityReference"/> to a website.</param>
        /// <param name="portalUser">An <see cref="EntityReference"/> to a portal user.</param>
        public DataAdapterDependencies(OrganizationServiceContext serviceContext, ICrmEntitySecurityProvider securityProvider,
                                       HttpContextBase httpContext, EntityReference website, EntityReference portalUser = null, RequestContext requestContext = null)
        {
            serviceContext.ThrowOnNull("serviceContext");
            securityProvider.ThrowOnNull("securityProvider");
            httpContext.ThrowOnNull("httpContext");
            website.ThrowOnNull("website");

            _serviceContext   = serviceContext;
            _securityProvider = securityProvider;
            _httpContext      = httpContext;
            _website          = website;
            _portalUser       = portalUser;
            _requestContext   = requestContext;
        }
        public SecurityCrmSiteMapNodeValidator(ICrmEntitySecurityProvider securityProvider)
        {
            securityProvider.ThrowOnNull("securityProvider");

            _securityProvider = securityProvider;
        }