Пример #1
0
 public TechnicalUser(Login login, string password, SigningKey signingKey, TaxPayerId taxId, EncryptionKey encryptionKey)
 {
     Login         = Check.NotNull(login, nameof(login));
     PasswordHash  = Sha512.GetHash(Check.NotNull(password, nameof(password)));
     SigningKey    = Check.NotNull(signingKey, nameof(signingKey));
     TaxId         = Check.NotNull(taxId, nameof(taxId));
     EncryptionKey = Check.NotNull(encryptionKey, nameof(encryptionKey));
 }
Пример #2
0
 public Info(TaxPayerId taxpayerId, Name name, SimpleAddress address)
 {
     TaxpayerId = Check.NotNull(taxpayerId, nameof(taxpayerId));
     Name       = Check.NotNull(name, nameof(name));
     Address    = Check.NotNull(address, nameof(address));
 }
Пример #3
0
 public SupplierInfo(TaxPayerId taxpayerId, Name name, SimpleAddress address, VatCode vatCode)
     : base(taxpayerId, name, address)
 {
     VatCode = Check.NotNull(vatCode, nameof(vatCode));
 }