/// <summary>
        /// TrustedProfileInfoForPESEL call
        /// </summary>
        /// <remarks>
        /// Either returns a valid response or a fault information
        /// </remarks>
        public virtual TrustedProfileInfoForPESELResponse TrustedProfileInfoForPESEL(
            string PESEL,
            ProfileInfoEnum profileInfo,
            out FaultModel fault)
        {
            if (string.IsNullOrEmpty(PESEL))
            {
                throw new ArgumentNullException("PESEL");
            }
            fault = null;

            // request
            var request =
                new TrustedProfileInfoForPESELRequest()
            {
                PESEL       = PESEL,
                ProfileInfo = profileInfo
            };

            // call ePUAP service and parse the response
            var response = WSSecurityRequest <TrustedProfileInfoForPESELRequest, TrustedProfileInfoForPESELResponse, TrustedProfileInfoForPESELResponseHandler>(
                this.ServiceUri,
                request,
                out fault);

            // parsed response
            return(response);
        }
 // Named constructor
 public static ProfileInfo CreateProfileInfo(ProfileInfoEnum profileInfo)
 {
     return(new ProfileInfo(profileInfo));
 }
 private ProfileInfo(ProfileInfoEnum profileInfo)
 {
     this.profileInfo = profileInfo;
     CheckProfile();
 }