Example #1
0
 public Training(IUser user, double repetitions, IActivity activity, ITrainingDate trainingDate)
 {
     User         = user;
     Repetitions  = repetitions;
     Activity     = activity;
     TrainingDate = trainingDate;
 }
 //créer une training depuis les valeurs passées en argument
 public ITraining CreateTrainingFromValues(double repetitions, IUser user, IActivity activity,
                                           ITrainingDate trainingDate)
 {
     return(new Training
     {
         Repetitions = repetitions,
         User = user,
         Activity = activity,
         TrainingDate = trainingDate
     });
 }