mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
24 lines
529 B
C#
24 lines
529 B
C#
using System;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using OpenAuth.Domain.Service;
|
|
using OpenAuth.Repository;
|
|
|
|
namespace OpenAuth.UnitTest
|
|
{
|
|
/// <summary>
|
|
/// 测试用户授权服务
|
|
/// </summary>
|
|
[TestClass]
|
|
public class TestAuthen
|
|
{
|
|
[TestMethod]
|
|
public void TestMethod1()
|
|
{
|
|
AuthoriseFactory factory = new AuthoriseFactory(new UnitWork() );
|
|
var service= factory.Create("System");
|
|
|
|
var orgs = service.Orgs;
|
|
}
|
|
}
|
|
}
|