mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-22 09:01:18 +03:00
test domain events
This commit is contained in:
@@ -28,7 +28,7 @@ namespace PracticeCalendar.Application.PracticeEvents.Commands
|
||||
public async Task<PracticeEventDto> Handle(CreatePracticeEventCommand request, CancellationToken cancellationToken)
|
||||
{
|
||||
var input = request.Event;
|
||||
var practiceEvent = new PracticeEvent(input.Title, input.Description);
|
||||
var practiceEvent = new PracticeEvent(input.Title, input.Description, input.StartTime, input.EndTime);
|
||||
foreach (var att in input.Attendees)
|
||||
{
|
||||
practiceEvent.AddAttendee(new Attendee(att.Name, att.EmailAddress));
|
||||
|
||||
Reference in New Issue
Block a user