public void RuleServiceTest_Edit_valid() { var model = new RuleModel { RuleId = 1, Category = "Category", Text = "Text", Title = "Title" }; var expected = rep.Edit(model); var actual = service.Edit(model); Assert.AreEqual(expected, actual); }
public void RuleControllerTest_EditRule() { var expected = service.Edit(new RuleModel()); var actual = controller.EditRule(new RuleModel()); Assert.AreEqual(expected, actual); }
public bool EditRule(RuleModel rule) { return(service.Edit(rule)); }