-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MandatoryQualificationDeletedEvent (#992)
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...hingRecordSystem/src/TeachingRecordSystem.Core/Events/IEventWithMandatoryQualification.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using TeachingRecordSystem.Core.Events.Models; | ||
|
||
namespace TeachingRecordSystem.Core.Events; | ||
|
||
public interface IEventWithMandatoryQualification | ||
{ | ||
MandatoryQualification MandatoryQualification { get; } | ||
} |
13 changes: 13 additions & 0 deletions
13
...ngRecordSystem/src/TeachingRecordSystem.Core/Events/MandatoryQualificationDeletedEvent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using TeachingRecordSystem.Core.Events.Models; | ||
using File = TeachingRecordSystem.Core.Events.Models.File; | ||
|
||
namespace TeachingRecordSystem.Core.Events; | ||
|
||
public record MandatoryQualificationDeletedEvent : EventBase, IEventWithPersonId, IEventWithMandatoryQualification | ||
{ | ||
public required Guid PersonId { get; init; } | ||
public required MandatoryQualification MandatoryQualification { get; init; } | ||
public required string? DeletionReason { get; init; } | ||
public required string? DeletionReasonDetail { get; init; } | ||
public required File? EvidenceFile { get; init; } | ||
} |
7 changes: 7 additions & 0 deletions
7
TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/Models/File.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace TeachingRecordSystem.Core.Events.Models; | ||
|
||
public record File | ||
{ | ||
public required Guid FileId { get; init; } | ||
public required string Name { get; init; } | ||
} |
10 changes: 10 additions & 0 deletions
10
TeachingRecordSystem/src/TeachingRecordSystem.Core/Events/Models/MandatoryQualification.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace TeachingRecordSystem.Core.Events.Models; | ||
|
||
public record MandatoryQualification | ||
{ | ||
public required Guid QualificationId { get; init; } | ||
public required MandatoryQualificationSpecialism? Specialism { get; init; } | ||
public required MandatoryQualificationStatus? Status { get; init; } | ||
public required DateOnly? StartDate { get; init; } | ||
public required DateOnly? EndDate { get; init; } | ||
} |