mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 14:04:41 +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 OpenAuth.App;
|
||||
using OpenAuth.Domain;
|
||||
using OpenAuth.Domain.Service;
|
||||
using OpenAuth.Repository;
|
||||
|
||||
namespace OpenAuth.UnitTest
|
||||
@ -17,7 +18,7 @@ namespace OpenAuth.UnitTest
|
||||
|
||||
|
||||
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");
|
||||
|
||||
|
||||
@ -97,13 +98,8 @@ namespace OpenAuth.UnitTest
|
||||
|
||||
[TestMethod]
|
||||
public void TestLoad()
|
||||
{
|
||||
var modules = _app.LoadByParent(0);
|
||||
foreach (var module in modules)
|
||||
{
|
||||
|
||||
Console.WriteLine(module.Name);
|
||||
}
|
||||
}
|
||||
|
||||
public Module Add(int parent = 0)
|
||||
|
Loading…
Reference in New Issue
Block a user