Exemple #1
0
 private void Apply(StudentCreatedEvent evt)
 {
     // Only set defaults here.
     registrationSequence = new IdSequence(0);
     hasGraduated         = false;
     credits = 0;
 }
Exemple #2
0
 internal StudentFlattened(StudentCreatedEvent @event)
 {
     StudentId     = @event.StudentId;
     FirstName     = @event.FirstName;
     LastName      = @event.LastName;
     StudentType   = @event.StudentType;
     StudentTypeId = @event.StudentTypeId;
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 internal StudentFlattened(StudentCreatedEvent @event)
 {
     ProcessEvent(@event, e =>
     {
         Id            = e.StudentId;
         FirstName     = e.FirstName;
         LastName      = e.LastName;
         StudentType   = e.StudentType;
         StudentTypeId = e.StudentTypeId;
     });
 }