示例#1
0
        internal Exercise(
            string name,
            string description,
            string instruction,
            Complexity complexity,
            Muscle muscle)
        {
            this.Validate(name, description, instruction);

            this.ValidateMuscle(muscle);

            this.Name        = name;
            this.Description = description;
            this.Instruction = instruction;

            this.Muscle = muscle;

            this.Complexity = complexity;
        }
示例#2
0
 public Exercise ChangeComplexity(Complexity complexity)
 {
     this.Complexity = complexity;
     return(this);
 }