public void Update() { const int id = 1; const string name = "test"; const int typeValue = 0; var model = FunctionDao.Get(id); model.Name = name; model.TypeValue = typeValue; var result = FunctionDao.Update(model); Assert.AreEqual(1, result); }
public void UpdateFunction(Function fun) { funDao.Update(fun); }