コード例 #1
0
        public void EnterBusyModeEmptiesNotification()
        {
            var model = new TermListViewModelDraft();

            model.FillNotification();
            Assert.IsNotNull(model.Notification);

            model.InvokeEnterBusyMode();
            Assert.IsNull(model.Notification);
        }
コード例 #2
0
        public void CancelCommandEmptiesNotification()
        {
            var editModel = new Mock <ITermEditViewModel>();
            var listModel = new TermListViewModelDraft(this._termsServiceMock.Object, editModel.Object);

            listModel.AddTerm.Execute(null);
            listModel.FillNotification();
            listModel.Cancel.Execute(null);

            Assert.IsNull(listModel.Notification);
        }