示例#1
0
        public void Handle(StudyCreatedEvent e)
        {
            var study = new Study();

            study.Apply(e);

            _studyRepository.Save(study);
        }
示例#2
0
 public void Apply(StudyCreatedEvent e)
 {
     _id         = e.StudyId;
     _statusId   = StudyStatus.CreatedGuid;
     _statusName = StudyStatus.CreatedName;
 }
示例#3
0
 public void Apply(StudyCreatedEvent e)
 {
     _id = e.StudyId;
 }