forked from ardalis/pluralsight-ddd-fundamentals
-
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.
Moving from CreateConfirmationEmailMessage (command) to use the AppointmentScheduledIntegrationEvent type.
- Loading branch information
Showing
18 changed files
with
79 additions
and
105 deletions.
There are no files selected for viewing
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
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
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
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
13 changes: 6 additions & 7 deletions
13
...ionEvents/AppointmentConfirmedAppEvent.cs → ...s/AppointmentConfirmedIntegrationEvent.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
35 changes: 0 additions & 35 deletions
35
FrontDesk/src/FrontDesk.Core/Events/IntegrationEvents/AppointmentScheduledAppEvent.cs
This file was deleted.
Oops, something went wrong.
12 changes: 8 additions & 4 deletions
12
...nEvents/CreateConfirmationEmailMessage.cs → ...s/AppointmentScheduledIntegrationEvent.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 |
---|---|---|
@@ -1,18 +1,22 @@ | ||
using System; | ||
using PluralsightDdd.SharedKernel.Interfaces; | ||
using PluralsightDdd.SharedKernel; | ||
|
||
namespace FrontDesk.Core.Events.IntegrationEvents | ||
{ | ||
public class CreateConfirmationEmailMessage : IIntegrationEvent | ||
public class AppointmentScheduledIntegrationEvent : BaseIntegrationEvent | ||
{ | ||
public AppointmentScheduledIntegrationEvent() | ||
{ | ||
DateOccurred = DateTimeOffset.Now; | ||
} | ||
|
||
public Guid AppointmentId { get; set; } | ||
public string ClientName { get; set; } | ||
public string ClientEmailAddress { get; set; } | ||
public string PatientName { get; set; } | ||
public string DoctorName { get; set; } | ||
public string AppointmentType { get; set; } | ||
public DateTimeOffset AppointmentStartDateTime { get; set; } | ||
|
||
public string EventType => nameof(CreateConfirmationEmailMessage); | ||
public string EventType => nameof(AppointmentScheduledIntegrationEvent); | ||
} | ||
} |
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
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
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
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
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
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
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
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
Oops, something went wrong.