public async Task <AnalysisProfileDTO> Handle(SetScriptFileCommand request, CancellationToken cancellationToken)
        {
            var analysisProfile = await _repository.GetAsync(request.AnalysisProfileId);

            var scriptFile = await _repository.GetScriptFileAsync(request.ScriptFileId);

            analysisProfile.SetScriptFile(scriptFile);
            _repository.Update(analysisProfile);

            await _repository.UnitOfWork.SaveChangesAsync();

            return(_mapper.Map <AnalysisProfileDTO>(analysisProfile));
        }
        public async Task <ScriptFileDTO> Handle(UpdateScriptFileCommand request, CancellationToken cancellationToken)
        {
            var scriptFile = await _repository.GetScriptFileAsync(request.Id);

            scriptFile.SetName(request.Name);
            scriptFile.SetDescription(request.Description);
            scriptFile.SetScript(request.Script);

            _repository.UpdateScriptFile(scriptFile);

            await _repository.UnitOfWork.SaveChangesAsync();

            return(_mapper.Map <ScriptFileDTO>(scriptFile));
        }