public void SetAddressDetails(AddressUpdated @event) { AddressLine1 = @event.AddressLine1; AddressLine2 = @event.AddressLine2; City = @event.City; Postcode = @event.Postcode; State = @event.State; CountryName = @event.CountryName; }
protected virtual void OnAddressUpdated() { CreateNotification(EventActionType.Updated); AddressUpdated?.Invoke(this, new NewNotificationEventArgs(this)); }
private void Apply(AddressUpdated e) { Address = new Address(e.AddressLine1, e.AddressLine2, e.City, e.Postcode, e.State, e.CountryName); }
private void OnAddressUpdated(AddressUpdated addressUpdated) { Address = new Address(addressUpdated.HouseNumber, addressUpdated.Street, addressUpdated.Locality, addressUpdated.City, addressUpdated.County, addressUpdated.Postcode, addressUpdated.Country); }