diff --git a/source/marketparticipant/Energinet.DataHub.MarketParticipant.Domain/Model/ActorNumber.cs b/source/marketparticipant/Energinet.DataHub.MarketParticipant.Domain/Model/ActorNumber.cs index 33900a14f..20cec802f 100644 --- a/source/marketparticipant/Energinet.DataHub.MarketParticipant.Domain/Model/ActorNumber.cs +++ b/source/marketparticipant/Energinet.DataHub.MarketParticipant.Domain/Model/ActorNumber.cs @@ -36,9 +36,4 @@ _ when EicActorNumber.TryCreate(value, out var eic) => eic, _ when GlnActorNumber.TryCreate(value, out var gln) => gln, _ => new UnknownActorNumber(value) }; - - public override string ToString() - { - return Value; - } } diff --git a/source/marketparticipant/Energinet.DataHub.MarketParticipant.Infrastructure/Services/ActorConsolidationScheduledIntegrationEventFactory.cs b/source/marketparticipant/Energinet.DataHub.MarketParticipant.Infrastructure/Services/ActorConsolidationScheduledIntegrationEventFactory.cs index ce4ad9e71..a8ccef87e 100644 --- a/source/marketparticipant/Energinet.DataHub.MarketParticipant.Infrastructure/Services/ActorConsolidationScheduledIntegrationEventFactory.cs +++ b/source/marketparticipant/Energinet.DataHub.MarketParticipant.Infrastructure/Services/ActorConsolidationScheduledIntegrationEventFactory.cs @@ -42,7 +42,7 @@ public Task CreateAsync(ActorConsolidationScheduled domainEven ReasonIdentifier = "ActorConsolidationScheduled", TargetActorId = domainEvent.Recipient.ToString(), TargetPermissions = permission, - RelatedId = domainEvent.AffectedActor.ToString(), + RelatedId = domainEvent.AffectedActor.Value, OccurredAt = now.ToTimestamp(), ExpiresAt = domainEvent.ConsolidateAt.ToTimestamp(), });