mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 18:34:44 +08:00
ru
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using Infrastructure;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using OpenAuth.App;
|
||||
using OpenAuth.Domain.Service;
|
||||
using OpenAuth.Repository;
|
||||
|
||||
@@ -12,13 +13,19 @@ namespace OpenAuth.UnitTest
|
||||
/// 测试用户授权服务
|
||||
/// </summary>
|
||||
[TestClass]
|
||||
public class TestAuthen
|
||||
public class TestAuthen :TestBase
|
||||
{
|
||||
private AuthorizeApp app;
|
||||
|
||||
public TestAuthen()
|
||||
{
|
||||
app = AutofacExt.GetFromFac<AuthorizeApp>();
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestMethod1()
|
||||
{
|
||||
AuthoriseFactory factory = new AuthoriseFactory( );
|
||||
var service= factory.Create("System");
|
||||
var service= app.Create("System");
|
||||
|
||||
var modules = service.Modules;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user