mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 18:47:55 +08:00
在内部实现ztree调用
确定LOGO
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user