Exemple #1
0
        public ManualResult(BenchmarkScenarioResult scenarioResult, ManualInfo manualInfo)
        {
            if (scenarioResult == null)
            {
                throw new ArgumentNullException(nameof(scenarioResult));
            }
            if (manualInfo == null)
            {
                throw new ArgumentNullException(nameof(manualInfo));
            }

            InputResults = scenarioResult.BenchmarkResults;
            Name         = manualInfo.Name ?? scenarioResult.Name ?? throw new ArgumentNullException(nameof(Name));
            Group        = manualInfo.Group ?? throw new ArgumentNullException(nameof(Group));
        }
Exemple #2
0
        public async Task UploadManualResult(BenchmarkScenarioResult scenarioResult, UploadConfig config, ManualInfo manualInfo)
        {
            if (scenarioResult == null)
            {
                throw new ArgumentNullException(nameof(scenarioResult));
            }
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }
            if (manualInfo == null)
            {
                throw new ArgumentNullException(nameof(manualInfo));
            }

            await UploadResult(new ManualResult(scenarioResult, manualInfo), config);
        }