Routine Update

This commit is contained in:
yubaolee
2015-10-31 23:04:01 +08:00
parent 1f574aca70
commit bd7842d5be
6 changed files with 127 additions and 78 deletions

View File

@@ -90,6 +90,32 @@ namespace OpenAuth.UnitTest
Assert.IsTrue(id != 0);
}
[TestMethod]
public void TestDelOrg()
{
int rootId = _app.AddOrg(new Org
{
Name = "即将被删除",
ParentId = 0
});
Assert.IsTrue(rootId != 0);
int id = _app.AddOrg(new Org
{
Name = "即将被删除1",
ParentId = rootId
});
id = _app.AddOrg(new Org
{
Name = "即将被删除2",
ParentId = id
});
_app.DelOrg(rootId);
}
[TestMethod]
public void TestLoadOrg()
{