在内部实现ztree调用

确定LOGO
This commit is contained in:
yubaolee
2015-10-28 22:49:59 +08:00
parent 4e7f9ad0b3
commit 153f263d34
10 changed files with 114 additions and 90 deletions

View File

@@ -65,16 +65,26 @@ namespace OpenAuth.UnitTest
[TestMethod]
public void TestAddOrg()
{
int id = _app.AddOrg(new Org
int rootId = _app.AddOrg(new Org
{
Name = "集团总部",
ParentId = 0
});
Assert.IsTrue(id != 0);
id = _app.AddOrg(new Org
Assert.IsTrue(rootId != 0);
int id = _app.AddOrg(new Org
{
Name = "一分公司",
ParentId = id
ParentId = rootId
});
id = _app.AddOrg(new Org
{
Name = "二分公司",
ParentId = rootId
});
id = _app.AddOrg(new Org
{
Name = "三分公司",
ParentId = rootId
});
Assert.IsTrue(id != 0);