public void EnterBusyModeEmptiesNotification() { var model = new TermListViewModelDraft(); model.FillNotification(); Assert.IsNotNull(model.Notification); model.InvokeEnterBusyMode(); Assert.IsNull(model.Notification); }
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); }