コード例 #1
0
        public void TestUpdateView()
        {
            //-- Arrange
            var mdl  = new SmsStorage();
            var form = new SmsFilter();

            mdl.AttachIModelObserver((IModelObserver)form);

            mdl.TextToFilter = "DRYV";

            //-- Act;
            mdl.UpdateView();
        }
コード例 #2
0
        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);
        }