private void Apply(StudentCreatedEvent evt) { // Only set defaults here. registrationSequence = new IdSequence(0); hasGraduated = false; credits = 0; }
internal StudentFlattened(StudentCreatedEvent @event) { StudentId = @event.StudentId; FirstName = @event.FirstName; LastName = @event.LastName; StudentType = @event.StudentType; StudentTypeId = @event.StudentTypeId; }
private void Apply(StudentCreatedEvent e) { FirstName = e.Student.FirstName; LastName = e.Student.LastName; Age = e.Student.Age; Gpa = e.Student.Gpa; Subjects = e.Student.Subjects; DateOfBirth = e.Student.DateOfBirth; }
internal StudentFlattened(StudentCreatedEvent @event) { ProcessEvent(@event, e => { Id = e.StudentId; FirstName = e.FirstName; LastName = e.LastName; StudentType = e.StudentType; StudentTypeId = e.StudentTypeId; }); }