feat: 完成单元测试搭建
This commit is contained in:
@@ -18,12 +18,12 @@ using Yi.Framework.SqlSugarCore.Abstractions;
|
||||
|
||||
namespace Yi.Framework.Rbac.Test.System
|
||||
{
|
||||
public class Account_Test : YiTestWebBase
|
||||
public class AccountFrameworkRbacTest : YiFrameworkRbacTestWebBase
|
||||
{
|
||||
|
||||
private IAccountService _accountService;
|
||||
private ISqlSugarRepository<UserAggregateRoot> _userRepository;
|
||||
public Account_Test()
|
||||
public AccountFrameworkRbacTest()
|
||||
{
|
||||
_accountService = GetRequiredService<IAccountService>();
|
||||
_userRepository = GetRequiredService<ISqlSugarRepository<UserAggregateRoot>>();
|
||||
@@ -13,11 +13,11 @@ using Yi.Framework.SqlSugarCore.Abstractions;
|
||||
|
||||
namespace Yi.Framework.Rbac.Test.System
|
||||
{
|
||||
public class User_Test : YiTestBase
|
||||
public class UserFrameworkRbacTest : YiFrameworkRbacTestBase
|
||||
{
|
||||
private IUserService _userService;
|
||||
private ISqlSugarRepository<UserAggregateRoot> _repository;
|
||||
public User_Test()
|
||||
public UserFrameworkRbacTest()
|
||||
{
|
||||
_userService = ServiceProvider.GetRequiredService<IUserService>();
|
||||
_repository = ServiceProvider.GetRequiredService<ISqlSugarRepository<UserAggregateRoot>>();
|
||||
Reference in New Issue
Block a user