test domain events (#2)

* test domain events

* cleanup
This commit is contained in:
2022-10-10 12:06:08 +03:00
committed by GitHub
parent 9076dcc542
commit 8d68f1b7a1
13 changed files with 140 additions and 20 deletions
@@ -11,12 +11,14 @@ namespace PracticeCalendar.Domain.Entities
/// </summary>
public class PracticeEvent : EntityBase, IAggregateRoot
{
public PracticeEvent(string title, string description)
public PracticeEvent(string title, string description, DateTime startTime, DateTime endTime)
{
Guard.Against.NullOrEmpty(title, nameof(title));
Guard.Against.NullOrEmpty(description, nameof(description));
this.Title = title;
this.Description = description;
this.StartTime = startTime;
this.EndTime = endTime;
}
public string Title { get; private set; } = string.Empty;