Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public LowercaseString(string value)
 {
     _value = value?.ToLower();
 }
Exemplo n.º 3
0
 public ForeignCompany(NotEmptyString taxNumber, CountryCode countryCode, NonNegativeInt branch = null, StringIdentifier name = null, Address address = null)
     : base(taxNumber, countryCode, branch, name, address)
 {
 }
Exemplo n.º 4
0
 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));
 }
Exemplo n.º 5
0
 public ListingMappings()
 {
     CreateMap <CreateListingInputDto, ListingEntity>()
     .ForMember(request => request.Title, opt =>
                opt.MapFrom(input => NotEmptyString.From(input.Title)));
 }