public void When(DailyTaskScheduled e)
 {
     this.Id = e.Id;
     this.GoalId = e.GoalId;
     this.TaskDate = e.TaskDate;
     this.Description = e.Description;
     this.Created = true;
 }
Пример #2
0
 public void When(DailyTaskScheduled e)
 {
     this.Id          = e.Id;
     this.GoalId      = e.GoalId;
     this.TaskDate    = e.TaskDate;
     this.Description = e.Description;
     this.Created     = true;
 }
Пример #3
0
 public void When(DailyTaskScheduled e)
 {
     _writer.UpdateEnforcingNew(e.GoalId, g =>
     {
         Day day;
         if (g.Days.ContainsKey(e.Id))
         {
             g.Days.TryGetValue(e.Id, out day);
             day.Description = e.Description;
             day.TaskDate    = e.TaskDate;
         }
         else
         {
             g.Days.Add(e.Id, new Day()
             {
                 Description = e.Description,
                 TaskDate    = e.TaskDate
             });
         }
     });
 }
 public void When(DailyTaskScheduled e)
 {
     _writer.UpdateEnforcingNew(e.GoalId, g =>
         {
             Day day;
             if (g.Days.ContainsKey(e.Id))
             {
                 g.Days.TryGetValue(e.Id, out day);
                 day.Description = e.Description;
                 day.TaskDate = e.TaskDate;
             }
             else
             {
                 g.Days.Add(e.Id, new Day()
                 {
                     Description = e.Description,
                     TaskDate = e.TaskDate
                 });
             }
         });
 }