mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 02:14:44 +08:00
check js bugs
This commit is contained in:
@@ -78,6 +78,7 @@
|
||||
<Compile Include="TestUnitWork.cs" />
|
||||
<Compile Include="TestUserApp.cs" />
|
||||
<Compile Include="TestOrgApp.cs" />
|
||||
<Compile Include="TestAuthen.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config">
|
||||
|
||||
23
OpenAuth.UnitTest/TestAuthen.cs
Normal file
23
OpenAuth.UnitTest/TestAuthen.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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()
|
||||
{
|
||||
AuthoriseService _service = new AuthoriseService(new UnitWork() );
|
||||
_service.GetUserAccessed("test");
|
||||
|
||||
var orgs = _service.Orgs;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -99,5 +99,11 @@ namespace OpenAuth.UnitTest
|
||||
};
|
||||
_app.AddOrUpdate(org1);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestLoadByUser()
|
||||
{
|
||||
var user = _app.LoadForUser(5);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user