Пример #1
0
        public ExerciseOutput ProcessMockDataOutput(ExerciseOutput output)
        {
            var builder = new ExerciseOutputBuilder(output);

            var viewModel = builder.SetMockQuestionData()
                            .SetMockRankData()
                            .Build();

            return(viewModel);
        }
Пример #2
0
        public IActionResult GetExercise()
        {
            try
            {
                var output = new ExerciseOutput();

                var result = _IExcerciseOutputService.ProcessMockDataOutput(output);

                return(Ok(result));
            }
            catch (Exception ex)
            {
                return(BadRequest());
            }
        }
Пример #3
0
 public ExerciseOutputBuilder(ExerciseOutput output)
 {
     _output = output;
 }