Esempio n. 1
0
        public void ImportSubaddressPositionFromCrab(
            CrabAddressPositionId addressPositionId,
            CrabSubaddressId subaddressId,
            WkbGeometry addressPosition,
            CrabAddressPositionOrigin addressPositionOrigin,
            CrabAddressNature addressNature,
            CrabLifetime lifetime,
            CrabTimestamp timestamp,
            CrabOperator @operator,
            CrabModification?modification,
            CrabOrganisation?organisation)
        {
            if (IsRemoved && modification != CrabModification.Delete)
            {
                return;
            }

            var legacyEvent = new AddressSubaddressPositionWasImportedFromCrab(
                addressPositionId,
                subaddressId,
                addressPosition,
                addressPositionOrigin,
                addressNature,
                lifetime,
                timestamp,
                @operator,
                modification,
                organisation);

            ApplyPositionChangeFor <AddressSubaddressPositionWasImportedFromCrab, int>(_crabSubaddressPositionEvents, legacyEvent);

            ApplyAddressCompletion();

            ApplyChange(legacyEvent);
        }
 public MunicipalityWasImportedFromCrab(
     CrabMunicipalityId crabMunicipalityId,
     NisCode nisCode,
     CrabLanguage?primaryLanguage,
     CrabLanguage?secondaryLanguage,
     NumberOfFlags numberOfFlags,
     CrabLifetime lifetime,
     WkbGeometry wkbGeometry,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     CrabMunicipalityId = crabMunicipalityId;
     NisCode            = nisCode;
     PrimaryLanguage    = primaryLanguage;
     SecondaryLanguage  = secondaryLanguage;
     NumberOfFlags      = numberOfFlags;
     BeginDate          = lifetime.BeginDateTime;
     EndDate            = lifetime.EndDateTime;
     WkbGeometry        = wkbGeometry?.ToString();
     Timestamp          = timestamp;
     Operator           = @operator;
     Modification       = modification;
     Organisation       = organisation;
 }
 public ImportMunicipalityFromCrab(
     NisCode nisCode,
     CrabLanguage?primaryLanguage,
     CrabLanguage?secondaryLanguage,
     CrabLanguage?facilityLanguage,
     WkbGeometry geometry,
     NumberOfFlags numberOfFlags,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation,
     CrabMunicipalityId municipalityId)
 {
     NisCode           = nisCode;
     PrimaryLanguage   = primaryLanguage;
     SecondaryLanguage = secondaryLanguage;
     FacilityLanguage  = facilityLanguage;
     Geometry          = geometry;
     Lifetime          = lifetime;
     Timestamp         = timestamp;
     Operator          = @operator;
     Modification      = modification;
     Organisation      = organisation;
     NumberOfFlags     = numberOfFlags;
     MunicipalityId    = municipalityId;
 }
 public StreetNameWasImportedFromCrab(
     CrabStreetNameId streetNameId,
     CrabMunicipalityId municipalityId,
     CrabStreetName primaryStreetName,
     CrabStreetName secondaryStreetName,
     CrabTransStreetName primaryTransStreetName,
     CrabTransStreetName secondaryTransStreetName,
     CrabLanguage?primaryLanguage,
     CrabLanguage?secondaryLanguage,
     CrabTimestamp timestamp,
     CrabLifetime lifetime,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     StreetNameId             = streetNameId;
     MunicipalityId           = municipalityId;
     PrimaryStreetName        = primaryStreetName?.Name;
     SecondaryStreetName      = secondaryStreetName?.Name;
     PrimaryTransStreetName   = primaryTransStreetName?.TransStreetName;
     SecondaryTransStreetName = secondaryTransStreetName?.TransStreetName;
     PrimaryLanguage          = primaryLanguage;
     SecondaryLanguage        = secondaryLanguage;
     Timestamp     = timestamp;
     BeginDateTime = lifetime.BeginDateTime;
     EndDateTime   = lifetime.EndDateTime;
     Operator      = @operator;
     Modification  = modification;
     Organisation  = organisation;
 }
Esempio n. 5
0
        public void ImportPostalInformationFromCrab(
            PostalCode postalCode,
            CrabSubCantonId subCantonId,
            CrabSubCantonCode subCantonCode,
            NisCode nisCode,
            CrabMunicipalityName municipalityName,
            CrabLifetime lifetime,
            CrabTimestamp timestamp,
            CrabOperator @operator,
            CrabModification?modification,
            CrabOrganisation?organisation)
        {
            ApplyChange(
                new MunicipalityWasAttached(
                    new PostalCode(subCantonCode),
                    nisCode));

            ApplyChange(
                new PostalInformationWasImportedFromCrab(
                    postalCode,
                    subCantonId,
                    subCantonCode,
                    nisCode,
                    municipalityName,
                    lifetime,
                    timestamp,
                    @operator,
                    modification,
                    organisation));
        }
Esempio n. 6
0
        public void ImportHouseNumberPositionFromCrab(
            CrabAddressPositionId addressPositionId,
            CrabHouseNumberId houseNumberId,
            WkbGeometry addressPosition,
            CrabAddressPositionOrigin addressPositionOrigin,
            CrabAddressNature addressNature,
            CrabLifetime lifetime,
            CrabTimestamp timestamp,
            CrabOperator @operator,
            CrabModification?modification,
            CrabOrganisation?organisation)
        {
            GuardRemoved(modification);

            var legacyEvent = new AddressHouseNumberPositionWasImportedFromCrab(
                addressPositionId,
                houseNumberId,
                addressPosition,
                addressPositionOrigin,
                addressNature,
                lifetime,
                timestamp,
                @operator,
                modification,
                organisation);

            ApplyPositionChangeFor <AddressHouseNumberPositionWasImportedFromCrab, int>(_crabHouseNumberPositionEvents, legacyEvent);

            ApplyAddressCompletion();

            ApplyChange(legacyEvent);
        }
Esempio n. 7
0
        public void ImportStatusFromCrab(
            CrabStreetNameStatusId streetNameStatusId,
            CrabStreetNameId streetNameId,
            CrabStreetNameStatus streetNameStatus,
            CrabLifetime lifeTime,
            CrabTimestamp timestamp,
            CrabOperator beginOperator,
            CrabModification?beginModification,
            CrabOrganisation?beginOrganisation)
        {
            if (IsRemoved && beginModification != CrabModification.Delete)
            {
                throw new InvalidOperationException($"Cannot change removed street name for street name id {_streetNameId}/{streetNameId}");
            }

            var legacyEvent = new StreetNameStatusWasImportedFromCrab(
                streetNameStatusId,
                streetNameId,
                streetNameStatus,
                lifeTime,
                timestamp,
                beginOperator,
                beginModification,
                beginOrganisation);

            ApplyStatusChangesFor(legacyEvent);

            ApplyCompletion();

            ApplyChange(legacyEvent);
        }
Esempio n. 8
0
        public void ImportHouseNumberStatusFromCrab(
            CrabHouseNumberStatusId houseNumberStatusId,
            CrabHouseNumberId houseNumberId,
            CrabAddressStatus addressStatus,
            CrabLifetime lifetime,
            CrabTimestamp timestamp,
            CrabOperator @operator,
            CrabModification?modification,
            CrabOrganisation?organisation)
        {
            GuardRemoved(modification);

            var legacyEvent = new AddressHouseNumberStatusWasImportedFromCrab(
                houseNumberStatusId,
                houseNumberId,
                addressStatus,
                lifetime,
                timestamp,
                @operator,
                modification,
                organisation);

            ApplyStatusChangesFor(_houseNumberStatusChronicle, legacyEvent);

            ApplyAddressCompletion();

            ApplyChange(legacyEvent);
        }
Esempio n. 9
0
        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 ImportStreetNameFromCrab(
     CrabStreetNameId streetNameId,
     CrabMunicipalityId municipalityId,
     NisCode nisCode,
     CrabStreetName primaryStreetName,
     CrabStreetName secondaryStreetName,
     CrabTransStreetName primaryTransStreetName,
     CrabTransStreetName secondaryTransStreetName,
     CrabLanguage?primaryLanguage,
     CrabLanguage?secondaryLanguage,
     CrabLifetime lifeTime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     StreetNameId             = streetNameId;
     MunicipalityId           = municipalityId;
     NisCode                  = nisCode;
     PrimaryStreetName        = primaryStreetName;
     SecondaryStreetName      = secondaryStreetName;
     PrimaryTransStreetName   = primaryTransStreetName;
     SecondaryTransStreetName = secondaryTransStreetName;
     PrimaryLanguage          = primaryLanguage;
     SecondaryLanguage        = secondaryLanguage;
     LifeTime                 = lifeTime;
     Timestamp                = timestamp;
     Operator                 = @operator;
     Modification             = modification;
     Organisation             = organisation;
 }
        protected StreetName Act(StreetName sut,
                                 CrabStreetNameId CrabStreetNameId,
                                 CrabMunicipalityId crabMunicipalityId,
                                 CrabStreetName primaryStreetName,
                                 CrabStreetName secondaryStreetName,
                                 CrabTransStreetName primaryTransStreetName,
                                 CrabTransStreetName secondaryTransStreetName,
                                 CrabLanguage?primaryLanguage,
                                 CrabLanguage?secondaryLanguage,
                                 CrabLifetime lifetime,
                                 CrabTimestamp crabTimestamp,
                                 CrabOperator beginOperator,
                                 CrabModification?modification,
                                 CrabOrganisation?beginOrganisation)
        {
            LogAct($"ImportFromCrab({CrabStreetNameId},{crabMunicipalityId},{primaryStreetName},{secondaryStreetName},{secondaryTransStreetName},{primaryTransStreetName},{primaryLanguage},{secondaryLanguage},{lifetime},{crabTimestamp},{beginOperator},{modification},{beginOrganisation})");

            sut.ImportFromCrab(CrabStreetNameId,
                               crabMunicipalityId,
                               primaryStreetName,
                               secondaryStreetName,
                               primaryTransStreetName,
                               secondaryTransStreetName,
                               primaryLanguage,
                               secondaryLanguage,
                               lifetime,
                               crabTimestamp,
                               beginOperator,
                               modification,
                               beginOrganisation);

            return(sut);
        }
Esempio n. 12
0
        public PostalInformationWasImportedFromCrab(
            PostalCode postalCode,
            CrabSubCantonId subCantonId,
            CrabSubCantonCode subCantonCode,
            NisCode nisCode,
            CrabMunicipalityName municipalityName,
            CrabLifetime lifetime,
            CrabTimestamp timestamp,
            CrabOperator @operator,
            CrabModification?modification,
            CrabOrganisation?organisation)
        {
            PostalCode    = postalCode;
            SubCantonId   = subCantonId;
            SubCantonCode = subCantonCode;
            NisCode       = nisCode;

            BeginDate = lifetime.BeginDateTime;

            MunicipalityName         = municipalityName.Name;
            MunicipalityNameLanguage = municipalityName.Language;

            Timestamp    = timestamp;
            Operator     = @operator;
            Modification = modification;
            Organisation = organisation;
        }
Esempio n. 13
0
        public void ImportSubaddressStatusFromCrab(
            CrabSubaddressStatusId subaddressStatusId,
            CrabSubaddressId subaddressId,
            CrabAddressStatus addressStatus,
            CrabLifetime lifetime,
            CrabTimestamp timestamp,
            CrabOperator @operator,
            CrabModification?modification,
            CrabOrganisation?organisation)
        {
            if (IsRemoved && modification != CrabModification.Delete)
            {
                return;
            }

            var legacyEvent = new AddressSubaddressStatusWasImportedFromCrab(
                subaddressStatusId,
                subaddressId,
                addressStatus,
                lifetime,
                timestamp,
                @operator,
                modification,
                organisation);

            ApplyStatusChangesFor(_subAddressStatusChronicle, legacyEvent);

            ApplyAddressCompletion();

            ApplyChange(legacyEvent);
        }
 public ImportTerrainObjectFromCrab(
     VbrCaPaKey caPaKey,
     CrabTerrainObjectId terrainObjectId,
     CrabIdentifierTerrainObject identifierTerrainObject,
     CrabTerrainObjectNatureCode terrainObjectNatureCode,
     CrabCoordinate xCoordinate,
     CrabCoordinate yCoordinate,
     CrabBuildingNature buildingNature,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     CaPaKey                 = caPaKey;
     TerrainObjectId         = terrainObjectId;
     IdentifierTerrainObject = identifierTerrainObject;
     TerrainObjectNatureCode = terrainObjectNatureCode;
     XCoordinate             = xCoordinate;
     YCoordinate             = yCoordinate;
     BuildingNature          = buildingNature;
     Lifetime                = lifetime;
     Timestamp               = timestamp;
     Operator                = @operator;
     Modification            = modification;
     Organisation            = organisation;
 }
Esempio n. 15
0
 public TerrainObjectWasImportedFromCrab(
     CrabTerrainObjectId terrainObjectId,
     CrabIdentifierTerrainObject identifierTerrainObject,
     CrabTerrainObjectNatureCode terrainObjectNatureCode,
     CrabCoordinate xCoordinate,
     CrabCoordinate yCoordinate,
     CrabBuildingNature buildingNature,
     CrabLifetime crabLifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     TerrainObjectId         = terrainObjectId;
     IdentifierTerrainObject = identifierTerrainObject;
     TerrainObjectNatureCode = terrainObjectNatureCode;
     XCoordinate             = xCoordinate;
     YCoordinate             = yCoordinate;
     BuildingNature          = buildingNature;
     Begin        = crabLifetime.BeginDateTime;
     End          = crabLifetime.EndDateTime;
     Timestamp    = timestamp;
     Operator     = @operator;
     Modification = modification;
     Organisation = organisation;
 }
Esempio n. 16
0
        public void ImportFromCrab(
            CrabStreetNameId streetNameId,
            CrabMunicipalityId municipalityId,
            CrabStreetName primaryStreetName,
            CrabStreetName secondaryStreetName,
            CrabTransStreetName primaryTransStreetName,
            CrabTransStreetName secondaryTransStreetName,
            CrabLanguage?primaryLanguage,
            CrabLanguage?secondaryLanguage,
            CrabLifetime lifeTime,
            CrabTimestamp timestamp,
            CrabOperator beginOperator,
            CrabModification?beginModification,
            CrabOrganisation?beginOrganisation)
        {
            if (IsRemoved)
            {
                throw new InvalidOperationException($"Cannot change removed street name for street name id {_streetNameId}/{streetNameId}");
            }

            if (beginModification == CrabModification.Delete)
            {
                ApplyChange(new StreetNameWasRemoved(_streetNameId));
            }
            else
            {
                ApplyRetiredOrUnretire(lifeTime, beginModification);

                if (beginModification != CrabModification.Correction)
                {
                    ApplyNameChanges(primaryStreetName, secondaryStreetName);
                    ApplyLanguageChanges(primaryLanguage?.ToLanguage(), secondaryLanguage?.ToLanguage());
                }
                else
                {
                    ApplyNameCorrections(primaryStreetName, secondaryStreetName);
                    ApplyLanguageCorrections(primaryLanguage?.ToLanguage(), secondaryLanguage?.ToLanguage());
                }
            }

            AssignPersistentLocalId(new PersistentLocalId(streetNameId), new PersistentLocalIdAssignmentDate(timestamp));

            ApplyChange(new StreetNameWasImportedFromCrab(
                            streetNameId,
                            municipalityId,
                            primaryStreetName,
                            secondaryStreetName,
                            primaryTransStreetName,
                            secondaryTransStreetName,
                            primaryLanguage,
                            secondaryLanguage,
                            timestamp,
                            lifeTime,
                            beginOperator,
                            beginModification,
                            beginOrganisation));
        }
Esempio n. 17
0
        public void ImportTerrainObjectFromCrab(
            CrabTerrainObjectId terrainObjectId,
            CrabIdentifierTerrainObject identifierTerrainObject,
            CrabTerrainObjectNatureCode terrainObjectNatureCode,
            CrabCoordinate xCoordinate,
            CrabCoordinate yCoordinate,
            CrabBuildingNature buildingNature,
            CrabLifetime lifetime,
            CrabTimestamp timestamp,
            CrabOperator @operator,
            CrabModification?modification,
            CrabOrganisation?organisation)
        {
            if (modification == CrabModification.Delete)
            {
                ApplyChange(new ParcelWasRemoved(_parcelId));
            }
            else
            {
                if (lifetime.EndDateTime.HasValue && !IsRetired)
                {
                    if (modification == CrabModification.Correction)
                    {
                        ApplyChange(new ParcelWasCorrectedToRetired(_parcelId));
                    }
                    else
                    {
                        ApplyChange(new ParcelWasRetired(_parcelId));
                    }
                }
                else if (!lifetime.EndDateTime.HasValue && !IsRealized)
                {
                    if (modification == CrabModification.Correction)
                    {
                        ApplyChange(new ParcelWasCorrectedToRealized(_parcelId));
                    }
                    else
                    {
                        ApplyChange(new ParcelWasRealized(_parcelId));
                    }
                }
            }

            ApplyChange(new TerrainObjectWasImportedFromCrab(
                            terrainObjectId,
                            identifierTerrainObject,
                            terrainObjectNatureCode,
                            xCoordinate,
                            yCoordinate,
                            buildingNature,
                            lifetime,
                            timestamp,
                            @operator,
                            modification,
                            organisation));
        }
        public static CrabTimestamp CorrectWhenTimeTravelingDelete(
            this CrabTimestamp timestamp,
            CrabModification?modification,
            DateTime startTime)
        {
            if (modification != CrabModification.Delete)
            {
                return(timestamp);
            }

            var startTimeInstant = startTime.ToCrabInstant();

            return((Instant)timestamp < startTimeInstant
                   // generated delete timestamp = start-time + buffer (to make sure it's after the start-times of all related records)
                ? new CrabTimestamp(startTimeInstant.Plus(Duration.FromSeconds(5)))
                : timestamp);
        }
Esempio n. 19
0
 public ImportMunicipalityNameFromCrab(
     CrabMunicipalityId municipalityId,
     CrabMunicipalityName municipalityName,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation,
     CrabMunicipalityNameId municipalityNameId)
 {
     MunicipalityId     = municipalityId;
     MunicipalityName   = municipalityName;
     Lifetime           = lifetime;
     Timestamp          = timestamp;
     Operator           = @operator;
     Modification       = modification;
     Organisation       = organisation;
     MunicipalityNameId = municipalityNameId;
 }
 public ImportHouseNumberStatusFromCrab(
     CrabHouseNumberStatusId houseNumberStatusId,
     CrabHouseNumberId houseNumberId,
     CrabAddressStatus addressStatus,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     HouseNumberStatusId = houseNumberStatusId;
     HouseNumberId       = houseNumberId;
     AddressStatus       = addressStatus;
     Lifetime            = lifetime;
     Timestamp           = timestamp;
     Operator            = @operator;
     Modification        = modification;
     Organisation        = organisation;
 }
 public ImportStreetNameStatusFromCrab(
     CrabStreetNameStatusId streetNameStatusId,
     CrabStreetNameId streetNameId,
     CrabStreetNameStatus streetNameStatus,
     CrabLifetime lifeTime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     StreetNameStatusId = streetNameStatusId;
     StreetNameId       = streetNameId;
     StreetNameStatus   = streetNameStatus;
     LifeTime           = lifeTime;
     Timestamp          = timestamp;
     Operator           = @operator;
     Modification       = modification;
     Organisation       = organisation;
 }
Esempio n. 22
0
 public ImportSubaddressStatusFromCrab(
     CrabSubaddressStatusId subaddressStatusId,
     CrabSubaddressId subaddressId,
     CrabAddressStatus addressStatus,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     SubaddressStatusId = subaddressStatusId;
     SubaddressId       = subaddressId;
     AddressStatus      = addressStatus;
     Lifetime           = lifetime;
     Timestamp          = timestamp;
     Operator           = @operator;
     Modification       = modification;
     Organisation       = organisation;
 }
Esempio n. 23
0
 public TerrainObjectHouseNumberWasImportedFromCrab(
     CrabTerrainObjectHouseNumberId terrainObjectHouseNumberId,
     CrabTerrainObjectId terrainObjectId,
     CrabHouseNumberId houseNumberId,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     TerrainObjectHouseNumberId = terrainObjectHouseNumberId;
     TerrainObjectId            = terrainObjectId;
     HouseNumberId = houseNumberId;
     BeginDateTime = lifetime.BeginDateTime;
     EndDateTime   = lifetime.EndDateTime;
     Timestamp     = timestamp;
     Operator      = @operator;
     Modification  = modification;
     Organisation  = organisation;
 }
 public StreetNameStatusWasImportedFromCrab(
     CrabStreetNameStatusId streetNameStatusId,
     CrabStreetNameId streetNameId,
     CrabStreetNameStatus streetNameStatus,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     StreetNameStatusId = streetNameStatusId;
     StreetNameId       = streetNameId;
     StreetNameStatus   = streetNameStatus;
     BeginDateTime      = lifetime.BeginDateTime;
     EndDateTime        = lifetime.EndDateTime;
     Timestamp          = timestamp;
     Operator           = @operator;
     Modification       = modification;
     Organisation       = organisation;
 }
Esempio n. 25
0
 public AddressSubaddressStatusWasImportedFromCrab(
     CrabSubaddressStatusId subaddressStatusId,
     CrabSubaddressId subaddressId,
     CrabAddressStatus addressStatus,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     SubaddressStatusId = subaddressStatusId;
     SubaddressId       = subaddressId;
     AddressStatus      = addressStatus;
     BeginDateTime      = lifetime.BeginDateTime;
     EndDateTime        = lifetime.EndDateTime;
     Timestamp          = timestamp;
     Operator           = @operator;
     Modification       = modification;
     Organisation       = organisation;
 }
 public ImportHouseNumberFromCrab(
     CrabHouseNumberId houseNumberId,
     CrabStreetNameId streetNameId,
     HouseNumber houseNumber,
     GrbNotation grbNotation,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     HouseNumberId = houseNumberId;
     StreetNameId  = streetNameId;
     HouseNumber   = houseNumber;
     GrbNotation   = grbNotation;
     Lifetime      = lifetime;
     Timestamp     = timestamp;
     Operator      = @operator;
     Modification  = modification;
     Organisation  = organisation;
 }
Esempio n. 27
0
 public ImportSubaddressFromCrab(
     CrabSubaddressId subaddressId,
     CrabHouseNumberId houseNumberId,
     BoxNumber boxNumber,
     CrabBoxNumberType boxNumberType,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     SubaddressId  = subaddressId;
     HouseNumberId = houseNumberId;
     BoxNumber     = boxNumber;
     Lifetime      = lifetime;
     Timestamp     = timestamp;
     Operator      = @operator;
     Modification  = modification;
     Organisation  = organisation;
     BoxNumberType = boxNumberType;
 }
Esempio n. 28
0
 public ImportTerrainObjectHouseNumberFromCrab(
     VbrCaPaKey caPaKey,
     CrabTerrainObjectHouseNumberId terrainObjectHouseNumberId,
     CrabTerrainObjectId terrainObjectId,
     CrabHouseNumberId houseNumberId,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     CaPaKey = caPaKey;
     TerrainObjectHouseNumberId = terrainObjectHouseNumberId;
     TerrainObjectId            = terrainObjectId;
     HouseNumberId = houseNumberId;
     Lifetime      = lifetime;
     Timestamp     = timestamp;
     Operator      = @operator;
     Modification  = modification;
     Organisation  = organisation;
 }
Esempio n. 29
0
 public MunicipalityNameWasImportedFromCrab(
     CrabMunicipalityId crabMunicipalityId,
     CrabMunicipalityNameId crabMunicipalityNameId,
     CrabMunicipalityName municipalityName,
     CrabLifetime lifetime,
     CrabTimestamp timestamp,
     CrabOperator @operator,
     CrabModification?modification,
     CrabOrganisation?organisation)
 {
     CrabMunicipalityId       = crabMunicipalityId;
     CrabMunicipalityNameId   = crabMunicipalityNameId;
     MunicipalityNameName     = municipalityName?.Name;
     MunicipalityNameLanguage = municipalityName?.Language;
     BeginDateTime            = lifetime.BeginDateTime;
     EndDateTime  = lifetime.EndDateTime;
     Timestamp    = timestamp;
     Operator     = @operator;
     Modification = modification;
     Organisation = organisation;
 }
 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;
 }