Example #1
0
 public ChallengeContext(Challenge challenge)
 {
     Challenge  = challenge ?? throw new ArgumentNullException(nameof(challenge));
     Evaluation = new ChallengeEvaluation();
 }
Example #2
0
 public ChallengeSubmission(string submittedCode, ChallengeEvaluation evaluation, IEnumerable <KernelEvent> events)
 {
     SubmittedCode  = submittedCode;
     Evaluation     = evaluation;
     EventsProduced = events;
 }