mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-16 08:08:27 +00:00
Added the research on individual participants to the BeyondFacts Lab (#1207)
This commit is contained in:
1 parent
3ca4b3878b
commit
92d0ff68f4
69 files changed
+3869
-186
No files matched your search
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user