This commit is contained in:
yubao
2017-11-29 00:48:51 +08:00
parent ead70c2f56
commit c860101747
6 changed files with 32 additions and 60 deletions

View File

@@ -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;