public void GetGroupTest() { using (var db = DbHelper.GetDataContext()) { var data = db.Group.FirstOrDefault(); if (data != null) { var group = target.GetGroup(data.GroupId); Assert.AreEqual(data.Name, group.Name); } } }
public Group GetGroup(int groupId) { if (groupId == 0) { return(null); } return(Dao.GetGroup(groupId)); }