public void DataTable_ContainsSerotypePcrProperties(SerotypePcr serotypePcr, string expectedValue) { var sut = CreateExportDefinition(); Sending.Isolate.SerotypePcr = serotypePcr; var export = sut.ToDataTable(Sendings); export.Rows[0]["serotype_by_PCR"].Should().Be(expectedValue); }
public void Interpret_NegativeAgglutinationButDistinctSerotypeWithNegativeBexA_IsSpecificTyping( SerotypePcr serotypePcr) { var serotypeString = serotypePcr.ToString().ToLower(); var isolate = new IsolateBase { SerotypePcr = serotypePcr, Agglutination = SerotypeAgg.Negative, BexA = TestResult.Negative }; var interpretation = isolateInterpretation.Interpret(isolate); var expectedInterpretation = $"Die Ergebnisse sprechen für einen phänotpischen nicht-typisierbaren Haemophilus influenzae (NTHi). Ein vorhandener genetischer Kapsellocus für Polysaccharide des Serotyps {serotypeString} wird nicht exprimiert."; interpretation.Interpretation.Should().Be(expectedInterpretation); interpretation.InterpretationPreliminary.Should().Contain("Diskrepante"); interpretation.InterpretationDisclaimer.Should() .Contain("Meldekategorie dieses Befundes: Haemophilus influenzae, unbekapselt."); }
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); }
public void Interpret_BexaAndAgglutinationIsNegative_WithRespectiveSeroType_NotTypable(SerotypePcr serotype) { var isolate = new IsolateBase { SerotypePcr = serotype, Agglutination = SerotypeAgg.Negative, BexA = TestResult.Negative }; var interpretation = isolateInterpretation.Interpret(isolate); interpretation.Interpretation.Should().Contain("nicht-typisierbar"); interpretation.InterpretationPreliminary.Should().Contain("Diskrepante"); interpretation.InterpretationDisclaimer.Should() .Contain("Meldekategorie dieses Befundes: Haemophilus influenzae, unbekapselt."); }