diff --git a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/TerminateBindingContract/BindingContractTerminatedEvent.cs b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/TerminateBindingContract/BindingContractTerminatedEvent.cs index e3283506..274b2af9 100644 --- a/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/TerminateBindingContract/BindingContractTerminatedEvent.cs +++ b/Chapter-4-applying-tactical-domain-driven-design/Fitnet.Contracts/Src/Fitnet.Contracts.Core/TerminateBindingContract/BindingContractTerminatedEvent.cs @@ -8,5 +8,5 @@ public sealed record BindingContractTerminatedEvent( DateTime OccuredAt) : IDomainEvent { internal static BindingContractTerminatedEvent Raise(DateTimeOffset terminatedAt) - => new(Guid.NewGuid(), terminatedAt, terminatedAt.DateTime); + => new(Guid.NewGuid(), terminatedAt, DateTime.UtcNow); }