Added the research on individual participants to the BeyondFacts Lab (#1207)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-15 15:39:34 +01:00
1 parent 3ca4b3878b
commit 92d0ff68f4
69 files changed
+3869 -186

No files matched your search

+11 -1
View File
@@ -21,18 +21,28 @@ public sealed class BflShareNamesTests
}
[Test]
public void TheHeadingsOfTheResearchOnTheParticipantsAreSuggested()
public void TheListOfPeopleOfTheResearchOnTheParticipantsIsSuggested()
{
var research = new BflResearch
{
Text = "## Teilnehmende\n\n### Dr. Eva Klein\n\n- Rolle: Podium\n\n### Frank Ott (Moderation)\n\n## Offene Punkte\n\n- Wer noch?",
CreatedAtUtc = NOW,
};
research.Participants = [.. BflParticipant.ListIn(research.Text)];
var names = BflShareNames.Suggest(Forms(), new Dictionary<BflStep, BflWorkState>(), research);
Assert.That(names, Is.EqualTo(new[] { "Eva Klein", "Frank Ott" }));
}
[Test]
public void TheHeadingsOfAResearchWithoutAListOfPeopleAreNotSuggested()
{
var research = new BflResearch { Text = "### Dr. Eva Klein", CreatedAtUtc = NOW };
var names = BflShareNames.Suggest(Forms(), new Dictionary<BflStep, BflWorkState>(), research);
Assert.That(names, Is.Empty);
}
[Test]
public void TheNamesInBoldInTheSectionOnTheParticipantsAreSuggested()
{