Esempio n. 1
0
            public static SchedulingRequest Create(string requestedBy, DateTime startDate, DateTime endDate, string description)
            {
                var requested = new SchedulingRequestCreatedEvent(requestedBy, startDate, endDate, description);
                var root      = new SchedulingRequest();

                root.RaiseEvent(requested);
                return(root);
            }
Esempio n. 2
0
 public void Apply(SchedulingRequestCreatedEvent evt)
 {
     StartDate   = evt.StartDate;
     EndDate     = evt.EndDate;
     RequestedBy = evt.RequestedBy;
 }