public Address(NotEmptyString postalCode, NotEmptyString city, StringIdentifier street = null, StringIdentifier number = null) { PostalCode = postalCode ?? throw new ArgumentNullException(nameof(postalCode)); City = city ?? throw new ArgumentNullException(nameof(city)); Street = street; Number = number; }
public LowercaseString(string value) { _value = value?.ToLower(); }
public ForeignCompany(NotEmptyString taxNumber, CountryCode countryCode, NonNegativeInt branch = null, StringIdentifier name = null, Address address = null) : base(taxNumber, countryCode, branch, name, address) { }
public InvoiceRecordPartyAddress(StringIdentifier street, StringIdentifier number, NotEmptyString postalCode, NotEmptyString city) { Street = street; Number = number; PostalCode = postalCode ?? throw new ArgumentNullException(nameof(postalCode)); City = city ?? throw new ArgumentNullException(nameof(city)); }
public ListingMappings() { CreateMap <CreateListingInputDto, ListingEntity>() .ForMember(request => request.Title, opt => opt.MapFrom(input => NotEmptyString.From(input.Title))); }