public void Add() { var model = new Function() { Name = "下载", TypeValue = 1 }; var result = FunctionDao.Add(model); Assert.AreEqual(1, result); }
public void AddFunction(Function f) { funDao.Add(f); }