Exemple #1
0
 /// <summary>
 /// Initializes an instance of the <see cref="Trainer"/> class.
 /// </summary>
 /// <param name="user">The user.</param>
 /// <param name="trainingRoom">The training room.</param>
 public Trainer(User user, TrainingRoom trainingRoom)
 {
     Id             = Guid.NewGuid();
     User           = user;
     UserId         = user.Id;
     TrainingRoom   = trainingRoom;
     TrainingRoomId = trainingRoom.Id;
 }
 /// <summary>
 /// Initializes an instance of the <see cref="TrainingSession"/> class.
 /// </summary>
 /// <param name="trainingRoom">The training room.</param>
 /// <param name="userId">The user id.</param>
 public TrainingSession(TrainingRoom trainingRoom, Guid userId)
 {
     Id               = Guid.NewGuid();
     TrainingRoomId   = trainingRoom.Id;
     StartedTimestamp = DateTime.UtcNow;
     UserId           = userId;
     TrainingRoom     = trainingRoom;
     LeasedOrganisms  = new List <LeasedOrganism>();
 }