Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlsixsmith-moj committed Sep 25, 2024
1 parent 763fa1c commit 93f0696
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 83 deletions.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion src/Domain/Entities/Inductions/HubInduction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private HubInduction(string participantId, int locationId, DateTime inductionDat
InductionDate = inductionDate;
OwnerId = ownerId;

AddDomainEvent(new HubInductionCreatedEvent(this));
AddDomainEvent(new HubInductionCreatedDomainEvent(this));
}

public static HubInduction Create(string participantId, int locationId, DateTime inductionDate, string ownerId)
Expand Down
4 changes: 2 additions & 2 deletions src/Domain/Entities/Inductions/WingInduction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private WingInduction(string participantId, int locationId, DateTime inductionDa
InductionDate = inductionDate;
OwnerId = ownerId;

AddDomainEvent(new WingInductionCreatedEvent(this));
AddDomainEvent(new WingInductionCreatedDomainEvent(this));
}

private List<InductionPhase> _phases = new();
Expand Down Expand Up @@ -64,7 +64,7 @@ public WingInduction CompleteCurrentPhase(DateTime completionDate)
_phases.Remove(current);
var phase = new InductionPhase(current.Number, current.StartDate, completionDate);
_phases.Add(phase);
this.AddDomainEvent(new InductionPhaseCompletedEvent(phase));
this.AddDomainEvent(new InductionPhaseCompletedDomainEvent(phase));
}
return this;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Domain/Events/InductionEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace Cfo.Cats.Domain.Events;

public sealed class HubInductionCreatedEvent(HubInduction induction) : DomainEvent
public sealed class HubInductionCreatedDomainEvent(HubInduction induction) : DomainEvent
{
public HubInduction Item { get; } = induction;
}

public sealed class WingInductionCreatedEvent(WingInduction induction) : DomainEvent
public sealed class WingInductionCreatedDomainEvent(WingInduction induction) : DomainEvent
{
public WingInduction Item { get; } = induction;
}

public sealed class InductionPhaseCompletedEvent(InductionPhase phase) : DomainEvent
public sealed class InductionPhaseCompletedDomainEvent(InductionPhase phase) : DomainEvent
{
public InductionPhase Item { get; } = phase;
}

0 comments on commit 93f0696

Please sign in to comment.