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);
}
}
}

View File

@ -16,9 +16,6 @@
* limitations under the License.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Microsoft.Office.Interop.Word;
using zaaReloaded2.LabModel;
@ -26,7 +23,6 @@ using zaaReloaded2.Formatter;
using zaa = zaaReloaded2.Controller.Elements;
using zaaReloaded2.Controller.Comments;
using System.Text.RegularExpressions;
using zaaReloaded2.Controller.Comments;
namespace Tests.Controller.Elements
{