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)); }
public AntimicrobialSensitivityTestExportDefinition(IMicStepsService micStepsService) { _micStepsService = micStepsService; AddField(m => m.SentinelEntry.Id, "Sentinel Datensatz Id"); AddField(m => ExportToString(m.TestingMethod), "Test"); AddField(m => ExportToString(m.AntifungalAgent), "Antimykotikum"); AddField(m => GetMicValue(m), "MHK"); AddField(m => ExportToString(m.Resistance), "Bewertung"); AddField(m => GetClinicalBreakpointName(m), "Breakpoint"); }
public ExcelExport(IAsyncRepository <SentinelEntry> sentinelEntryRepository, IProtectKeyToOrganizationResolver organizationResolver, IMicStepsService micStepsService) { _sentinelEntryRepository = sentinelEntryRepository; _organizationResolver = organizationResolver; _micStepsService = micStepsService; }