public void DataTable_ContainsAgglutinationProperties(SerotypeAgg agglutination, string expectedValue) { var sut = CreateExportDefinition(); Sending.Isolate.Agglutination = agglutination; var export = sut.ToDataTable(Sendings); export.Rows[0]["serotype_by_serology"].Should().Be(expectedValue); }
Interpret_DistinctAgglutinationWithPositiveBexA_EitherMatchingOrNotDeterminedSerotype_IsSpecificTyping( SerotypeAgg serotypeAgg, SerotypePcr serotypePcr) { var serotypeString = serotypeAgg.ToString().ToLower(); var isolate = new IsolateBase { SerotypePcr = serotypePcr, Agglutination = serotypeAgg, BexA = TestResult.Positive }; var interpretation = isolateInterpretation.Interpret(isolate); var expectedInterpretation = string.Format("Die Ergebnisse sprechen für eine Infektion mit Haemophilus influenzae des Serotyp {0} (Hi{0}).", serotypeString); var expectedDisclaimer = $"Meldekategorie dieses Befundes: Haemophilus influenzae, Serotyp {serotypeString}"; interpretation.Interpretation.Should().Be(expectedInterpretation); interpretation.InterpretationPreliminary.Should().Contain("Diskrepante"); interpretation.InterpretationDisclaimer.Should().Contain(expectedDisclaimer); }