public void TestUpdateView() { //-- Arrange var mdl = new SmsStorage(); var form = new SmsFilter(); mdl.AttachIModelObserver((IModelObserver)form); mdl.TextToFilter = "DRYV"; //-- Act; mdl.UpdateView(); }
public void TestAttachIModelObserver() { //-- Arrange var expected = true; var form = new SmsFilter(); var mdl = new SmsStorage(); //-- Act; mdl.AttachIModelObserver((IModelObserver)form); var actual = mdl.IsSubscribedAttachIModelObserver(); //-- Assert Assert.AreEqual(expected, actual); }