public SendForm(
            IPlatformLogger logger,
            ICompleteTestResultRepository repository,
            TestsetRunResult runResult
            )
        {
            InitializeComponent();

            _runResult  = runResult;
            _logger     = logger;
            _repository = repository;

            var testResults = _runResult.Result;

            InitYearBox();
            this.testResultBox.Text  = $"{testResults.Count(x => x.Kind == TestResultKind.Success)}/{testResults.Count}";
            this.semesterBox.Text    = DateTime.Now.Month >= 9 ? "Осенний" : "Весенний";
            this.scoreBox.Text       = $"{testResults.PercentageResult()}%";
            this.subjectTaskBox.Text = _runResult.ArchiveName;
        }
Exemple #2
0
 public MainForm(IPlatformLogger logger, ICompleteTestResultRepository repository)
 {
     InitializeComponent();
     _logger     = logger;
     _repository = repository;
 }