diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AddAnnex/AttachedAnnexToBindingContractEvent.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AddAnnex/AnnexAttachedToBindingContractEvent.cs similarity index 80% rename from Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AddAnnex/AttachedAnnexToBindingContractEvent.cs rename to Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AddAnnex/AnnexAttachedToBindingContractEvent.cs index fcc111f5..516ae1f8 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AddAnnex/AttachedAnnexToBindingContractEvent.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/AddAnnex/AnnexAttachedToBindingContractEvent.cs @@ -2,14 +2,14 @@ using DomainDrivenDesign.BuildingBlocks; -public sealed record AttachedAnnexToBindingContractEvent( +public sealed record AnnexAttachedToBindingContractEvent( Guid Id, AnnexId AnnexId, BindingContractId BindingContractId, DateTimeOffset ValidFrom, DateTime OccuredAt) : IDomainEvent { - internal static AttachedAnnexToBindingContractEvent Raise( + internal static AnnexAttachedToBindingContractEvent Raise( AnnexId annexId, BindingContractId bindingContractId, DateTimeOffset validFrom) diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Annex.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Annex.cs index 73b7aba8..248333b2 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Annex.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/Annex.cs @@ -18,7 +18,7 @@ private Annex(BindingContractId bindingContractId, DateTimeOffset validFrom) BindingContractId = bindingContractId; ValidFrom = validFrom; - var @event = AttachedAnnexToBindingContractEvent.Raise(Id, BindingContractId, ValidFrom); + var @event = AnnexAttachedToBindingContractEvent.Raise(Id, BindingContractId, ValidFrom); RecordEvent(@event); }