public void ImportHouseNumberMailCantonFromCrab( CrabHouseNumberMailCantonId houseNumberMailCantonId, CrabHouseNumberId houseNumberId, CrabMailCantonId mailCantonId, CrabMailCantonCode mailCantonCode, CrabLifetime lifetime, CrabTimestamp timestamp, CrabOperator @operator, CrabModification?modification, CrabOrganisation?organisation) { if (!IsSubaddress) { GuardRemoved(modification); } var legacyEvent = new AddressHouseNumberMailCantonWasImportedFromCrab( houseNumberMailCantonId, houseNumberId, mailCantonId, mailCantonCode, lifetime, timestamp, @operator, modification, organisation); if (!(IsSubaddress && IsRemoved) && !(_coupledHouseNumberId != null && _coupledHouseNumberId != houseNumberId)) { ApplyPostalCodeChangeFor(legacyEvent); } ApplyChange(legacyEvent); }
public ImportHouseNumberMailCantonFromCrab( CrabHouseNumberMailCantonId houseNumberMailCantonId, CrabHouseNumberId houseNumberId, CrabMailCantonId mailCantonId, CrabMailCantonCode mailCantonCode, CrabLifetime lifetime, CrabTimestamp timestamp, CrabOperator @operator, CrabModification?modification, CrabOrganisation?organisation) { HouseNumberMailCantonId = houseNumberMailCantonId; HouseNumberId = houseNumberId; MailCantonId = mailCantonId; Lifetime = lifetime; Timestamp = timestamp; Operator = @operator; Modification = modification; Organisation = organisation; MailCantonCode = mailCantonCode; }
public AddressHouseNumberMailCantonWasImportedFromCrab( CrabHouseNumberMailCantonId houseNumberMailCantonId, CrabHouseNumberId houseNumberId, CrabMailCantonId mailCantonId, CrabMailCantonCode mailCantonCode, CrabLifetime lifetime, CrabTimestamp timestamp, CrabOperator @operator, CrabModification?modification, CrabOrganisation?organisation) { HouseNumberMailCantonId = houseNumberMailCantonId; HouseNumberId = houseNumberId; MailCantonId = mailCantonId; MailCantonCode = mailCantonCode; BeginDateTime = lifetime.BeginDateTime; EndDateTime = lifetime.EndDateTime; Timestamp = timestamp; Operator = @operator; Modification = modification; Organisation = organisation; }