예제 #1
0
 public static Trip CreateTrip(Guid id, DateAller aller, DateRetour retour)
 {
     return(new Trip(id, aller, retour));
 }
예제 #2
0
 private void Apply(NewTripCreated @event)
 {
     Id     = @event.Id;
     Aller  = new DateAller(@event.Aller);
     Retour = new DateRetour(@event.Retour);
 }
예제 #3
0
 private Trip(Guid id, DateAller aller, DateRetour retour)
 {
     ApplyChange(new NewTripCreated(id, aller.Date, retour.Date));
 }