Skip to content

Commit

Permalink
refactor: event name to AttachedAnnexToBindingContractEvent to AnnexA…
Browse files Browse the repository at this point in the history
…ttachedToBindingContractEvent
  • Loading branch information
kamilbaczek committed Apr 15, 2024
1 parent 61aebcb commit 08a4b33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 08a4b33

Please sign in to comment.