Ejemplo n.º 1
0
        public static DraftPayer IndividualEntrepreneur(Inn inn)
        {
            if (inn is null)
            {
                throw new ArgumentNullException(nameof(inn));
            }

            var innString = inn.ToString() ?? throw new ArgumentNullException(nameof(inn));

            return(new(innString, null));
        }
Ejemplo n.º 2
0
        public static DraftSender IndividualEntrepreneur(Inn inn, CertificateContent certificate)
        {
            if (inn is null)
            {
                throw new ArgumentNullException(nameof(inn));
            }
            if (certificate is null)
            {
                throw new ArgumentNullException(nameof(certificate));
            }

            return(new(inn.ToString(), null, certificate));
        }