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(); }
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()); }