private AntimicrobialSensitivityTestExportDefinition CreateExportDefinition(out IMicStepsService micStepsService) { micStepsService = Substitute.For <IMicStepsService>(); micStepsService.StepsByTestingMethodAndAgent(Arg.Any <SpeciesTestingMethod>(), Arg.Any <AntifungalAgent>()) .Returns(new List <MicStep>()); return(new AntimicrobialSensitivityTestExportDefinition(micStepsService)); }
private string GetMicValue(AntimicrobialSensitivityTest test) { var micStep = _micStepsService.StepsByTestingMethodAndAgent(test.TestingMethod, test.AntifungalAgent) .FirstOrDefault(s => s.Value.Equals(test.MinimumInhibitoryConcentration)); return(micStep != null ? micStep.Title : test.MinimumInhibitoryConcentration.ToString(CultureInfo.GetCultureInfo("de"))); }