コード例 #1
0
 public List <MicStep> StepsByTestingMethodAndAgent(SpeciesTestingMethod testingMethod, AntifungalAgent agent)
 {
     return(new List <MicStep>()
     {
         new MicStep {
             Title = "≤4", Value = 4, LowerBoundary = true
         },
         new MicStep {
             Title = "8", Value = 8
         },
         new MicStep {
             Title = "≥16", Value = 16, UpperBoundary = true
         }
     });
 }
コード例 #2
0
ファイル: MicStepsService.cs プロジェクト: markusrt/NRZMyk
        public List <MicStep> StepsByTestingMethodAndAgent(SpeciesTestingMethod testingMethod, AntifungalAgent agent)
        {
            List <MicStep> agentSteps = null;

            _micSteps.TryGetValue(testingMethod, out var testingMethodSteps);
            testingMethodSteps?.TryGetValue(agent, out agentSteps);

            if (agentSteps == null)
            {
                _logger.LogInformation("No MIC steps for {testingMethod}/{agent} found", testingMethod, agent);
                return(new List <MicStep>());
            }
            _logger.LogInformation("Found {stepCount} MIC steps for {testingMethod}/{agent} found",
                                   agentSteps.Count, testingMethod, agent);

            agentSteps.First().LowerBoundary = true;
            agentSteps.Last().UpperBoundary  = true;
            return(agentSteps);
        }