mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
Routine Update
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user