public void GetActions() { var actions = GenericEntityActionsController.GetEntityListActions("Customer"); Assert.AreEqual("Add", actions[0]); Assert.AreEqual("Remove", actions[1]); }
public void InvoiceCustomer() { var context = TestHelper.GetMockContext(); var controller = new GenericEntityActionsController(context); var result = controller.EntityAction("Customer", "Invoice", 1); Assert.IsTrue(true); // TODO assert the effects on the mocked context }
public void AddProduct() { var context = TestHelper.GetMockContext(); var controller = new GenericEntityActionsController(context); var result = controller.ListAction("Product", "Add"); Assert.IsTrue(true); // TODO assert the effects on the mocked context }