Implement ItemComment view model and view.

- NEU: Optionale Kommentare zu Laborwerten.
This commit is contained in:
Daniel Kraus
2015-08-30 20:32:37 +02:00
parent 02b4bc07a3
commit 9068dde1c3
11 changed files with 288 additions and 9 deletions

View File

@ -48,13 +48,13 @@ namespace Tests.Controller.Comments
public void BuildingCommentRaisesEvent()
{
ItemComment i = CommentPool.Default.GetCommentFor("item \"<>\"");
bool eventRaised = false;
int eventRaised = 0;
CommentPool.Default.FillInComment += (sender, args) =>
{
eventRaised = true;
eventRaised += 1;
};
string comment = i.BuildComment();
Assert.IsTrue(eventRaised);
Assert.AreEqual(1, eventRaised);
}
}
}