public UpdateEvaluationToolCommand(Guid id, string name, ETypeEvaluationTool type, ICollection<Question> question)
 {
     this.Id = id;
     this.Name = name;
     this.Type = type;
     this.Question = question;
 }
Example #2
0
 public UpdateEvaluationToolCommand(Guid id, string name, ETypeEvaluationTool type, ICollection <Question> question)
 {
     this.Id       = id;
     this.Name     = name;
     this.Type     = type;
     this.Question = question;
 }
Example #3
0
 public CreateEvaluationToolCommand(string name, ETypeEvaluationTool type, ICollection <Question> question, ICollection <Coach> coach, string author)
 {
     this.Name     = name;
     this.Type     = type;
     this.Question = question;
     this.Coach    = coach;
     this.Author   = author;
 }
 public CreateEvaluationToolCommand(string name, ETypeEvaluationTool type, ICollection<Question> question, ICollection<Coach> coach, string author)
 {
     this.Name = name;
     this.Type = type;
     this.Question = question;
     this.Coach = coach;
     this.Author = author;
 }
 public List<Question> AddToEvaluationTool(dynamic body, ETypeEvaluationTool type)
 {
     if (type == ETypeEvaluationTool.Questionnaire)
         return AddToEvaluationToolQuestionnaire(body);
     else if (type == ETypeEvaluationTool.Script)
         return AddToEvaluationToolScript(body);
     else if (type == ETypeEvaluationTool.Wheel)
         return AddToEvaluationToolWheel(body);
     else
         return null;
 }
 public List <Question> AddToEvaluationTool(dynamic body, ETypeEvaluationTool type)
 {
     if (type == ETypeEvaluationTool.Questionnaire)
     {
         return(AddToEvaluationToolQuestionnaire(body));
     }
     else if (type == ETypeEvaluationTool.Script)
     {
         return(AddToEvaluationToolScript(body));
     }
     else if (type == ETypeEvaluationTool.Wheel)
     {
         return(AddToEvaluationToolWheel(body));
     }
     else
     {
         return(null);
     }
 }
 public static bool ChangeTypeScopeIsValid(this EvaluationTool evaluationTool, ETypeEvaluationTool type)
 {
     return AssertionConcern.IsSatisfiedBy(
                     AssertionConcern.AssertArgumentNotNull(evaluationTool.Type, Errors.TypeIsRequired)
         );
 }
Example #8
0
 public static bool ChangeTypeScopeIsValid(this EvaluationTool evaluationTool, ETypeEvaluationTool type)
 {
     return(AssertionConcern.IsSatisfiedBy(
                AssertionConcern.AssertArgumentNotNull(evaluationTool.Type, Errors.TypeIsRequired)
                ));
 }