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