public void TestGroupDelete()
{
var group_bll = new sp_Group_BLL();
var allGroups = group_bll.ListGroups();
Assert.IsTrue(allGroups.Count > 0, "The ListGroups() is broken, or no data in DB");
var currGroup = allGroups[0];
//TODO: change activeflg to bool not bool?
var notActive = currGroup.ActiveFlg != true;
var i = 1;
while (notActive)
{
currGroup = allGroups[i];
notActive = currGroup.ActiveFlg != true;
}
group_bll.DeleteGroupContext(currGroup);
var selectedGroup = group_bll.ListGroups(currGroup.GroupID);
//TODO: change activeflg to bool not bool?
Assert.IsNotNull(selectedGroup.ActiveFlg);
Assert.IsFalse(selectedGroup.ActiveFlg == true);
Assert.IsTrue(selectedGroup.ActiveFlg == false);
}