public TestCaseChallengeSolvingStrategy(
     IChallengesUnitOfWork unitOfWork,
     ICodeExecutor codeExecutor,
     IIdentityService identityService,
     CodeExecutionRequestBuilder codeExecutionRequestBuilder)
     : base(unitOfWork, identityService)
 {
     this.codeExecutor = codeExecutor;
     this.codeExecutionRequestBuilder = codeExecutionRequestBuilder;
 }
 public SaveChallengeHandler(IChallengesUnitOfWork unitOfWork, IMapper mapper,
                             IIndex <ChallengeType, IChallengeMapper> challengeMappers,
                             ITagService tagService, ICodeExecutor codeExecutor,
                             CodeExecutionRequestBuilder codeExecutionRequestBuilder)
 {
     this.unitOfWork                  = unitOfWork;
     this.mapper                      = mapper;
     this.challengeMappers            = challengeMappers;
     this.tagService                  = tagService;
     this.codeExecutor                = codeExecutor;
     this.codeExecutionRequestBuilder = codeExecutionRequestBuilder;
 }
Esempio n. 3
0
 public TamerCode(ICodeRunner codeRunner, ICodeExecutor codeExecutor, ICodeAnalyzer codeAnalyzer)
 {
     _codeRunner   = codeRunner;
     _codeExecutor = codeExecutor;
     _codeAnalyzer = codeAnalyzer;
 }
 public void Initialize()
 {
     subject = new CodeExecutor();
 }