public CreateAddressCommand(string cep, EStates state, string city, string street, int number, EAddressType type, Guid idPerson, string description = null) { this.IdPerson = idPerson; this.CEP = cep; this.State = state; this.City = city; this.Street = street; this.Number = number; this.Type = type; this.Description = description; }
public ChangeAddressCommand(Guid Id, string cep, EStates state, string city, string street, int number, EAddressType type, string description = null) { this.Id = Id; this.CEP = cep; this.State = state; this.City = city; this.Street = street; this.Number = number; this.Type = type; this.Description = description; }
public Address( string street, string number, string complement, string district, string city, string state, string country, string zipcode, EAddressType type ) { Street = street; Number = number; Complement = complement; District = district; State = state; Country = country; City = city; ZipCode = zipcode; Tyoe = type; }
public static bool ChangeTypeScopeIsValid(this Address address, EAddressType type) { return AssertionConcern.IsSatisfiedBy( AssertionConcern.AssertArgumentNotNull(type, Errors.InvalidAddresType) ); }
public Address(string street, string number, string complement, string district, string city, string state, string country, string zipCode, EAddressType addressType) { Street = street; Number = number; Complement = complement; District = district; City = city; State = state; Country = country; ZipCode = zipCode; AddressType = addressType; AddNotifications(new ValidationContract() .Requires() .IsFalse(number.Length == 0, "Address", "O numero de endereco informado não é valído") .IsNotNullOrEmpty(street, "Address", "O campo rua do endereço informado não é valído") .IsNotNullOrEmpty(Complement, "Complement", "O campo Complemento do endereço informado não é valído") .IsNotNullOrEmpty(District, "District", "O campo bairro do endereço informado não é valído") .IsNotNullOrEmpty(City, "City", "O campo cidade do endereço informado não é valído") .IsNotNullOrEmpty(State, "State", "O campo estado do endereço informado não é valído") .IsNotNullOrEmpty(Country, "Country", "O campo pais do endereço informado não é valído") .IsNotNullOrEmpty(ZipCode, "ZipCode", "O campo Código Postal do endereço informado não é valído") ); }
public AddAddressCommand(Guid id, string street, string number, string complement, string district, string city, string state, string country, string zipCode, EAddressType type) { Id = id; Street = street; Number = number; Complement = complement; District = district; City = city; State = state; Country = country; ZipCode = zipCode; Type = type; }
public Address(string street, string number, string complement, string district, string city, string state, string country, string zipCode, EAddressType type) { this.Street = street; this.Number = number; this.Complement = complement; this.District = district; this.City = city; this.State = State; this.Country = country; this.ZipCode = zipCode; this.Type = type; }
public Address(Guid id, string street, string city, string state, string country, string zipCode, EAddressType type) : base(id) { Street = street; City = city; State = state; Country = country; ZipCode = zipCode; Type = type; }
public static bool ChangeTypeScopeIsValid(this Address address, EAddressType type) { return(AssertionConcern.IsSatisfiedBy( AssertionConcern.AssertArgumentNotNull(type, Errors.InvalidAddresType) )); }
public CreateAddressCommand(string street, string city, string state, string country, string zipCode, EAddressType type, Guid customerId) { Street = street; City = city; State = state; Country = country; ZipCode = zipCode; Type = type; CustomerId = customerId; }
public Address(string street, string number, string complement, string district, string city, string state, string country, string zipCode, EAddressType addressType) { this.street = street; this.number = number; this.complement = complement; this.district = district; this.city = city; this.state = state; this.country = country; this.zipCode = zipCode; this.addressType = addressType; }
public ListCustomerAdresses(string street, string number, string complement, string district, string city, string state, string country, string zipCode, EAddressType addressType) { Street = street; NumberAddress = number; Complement = complement; District = district; City = city; State = state; Country = country; ZipCode = zipCode; TypeAddress = addressType; }