示例#1
0
        public void Test_DataMonitorPresenter_Common()
        {
            var view  = Substitute.For <IDataMonitorView>();
            var model = new ALModel(null);

            var presenter = new DataMonitorPresenter(view);

            presenter.SetContext(model);
            presenter.UpdateView();
        }
示例#2
0
        public void Test_InventoryEditorPresenter_Common()
        {
            var view   = Substitute.For <IInventoryEditorView>();
            var model  = new ALModel(null);
            var record = new Inventory();

            var presenter = new InventoryEditorPresenter(view);

            presenter.SetContext(model, record);
            Assert.IsTrue(presenter.ApplyChanges());
        }