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)); }
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)); }