mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-16 07:59:54 +08:00
check unittest
This commit is contained in:
parent
5af3353a12
commit
d3c98fdc87
@ -4,6 +4,7 @@ using System.Collections.Generic;
|
|||||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||||
using OpenAuth.App;
|
using OpenAuth.App;
|
||||||
using OpenAuth.Domain;
|
using OpenAuth.Domain;
|
||||||
|
using OpenAuth.Domain.Service;
|
||||||
using OpenAuth.Repository;
|
using OpenAuth.Repository;
|
||||||
|
|
||||||
namespace OpenAuth.UnitTest
|
namespace OpenAuth.UnitTest
|
||||||
@ -17,7 +18,7 @@ namespace OpenAuth.UnitTest
|
|||||||
|
|
||||||
|
|
||||||
private TestContext testContextInstance;
|
private TestContext testContextInstance;
|
||||||
private ModuleManagerApp _app = new ModuleManagerApp(new ModuleRepository(), new RelevanceRepository());
|
private ModuleManagerApp _app ;
|
||||||
private string _time = DateTime.Now.ToString("HH_mm_ss_ms");
|
private string _time = DateTime.Now.ToString("HH_mm_ss_ms");
|
||||||
|
|
||||||
|
|
||||||
@ -98,12 +99,7 @@ namespace OpenAuth.UnitTest
|
|||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void TestLoad()
|
public void TestLoad()
|
||||||
{
|
{
|
||||||
var modules = _app.LoadByParent(0);
|
|
||||||
foreach (var module in modules)
|
|
||||||
{
|
|
||||||
|
|
||||||
Console.WriteLine(module.Name);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Module Add(int parent = 0)
|
public Module Add(int parent = 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user