添加工作单元测试

This commit is contained in:
陈淳
2022-12-29 09:53:45 +08:00
parent 9673aa7690
commit dbe020dc94
6 changed files with 29 additions and 12 deletions

View File

@@ -111,11 +111,10 @@ namespace Yi.Framework.ApiMicroservice.Controllers
}
[HttpGet]
public async Task<Result> TestUnitOfWork()
{
var userId = await _iUserService.AddInfo(new DTOModel.UserInfoDto { User = new UserEntity { Address = "", UserName = "lisi", Password = "123456" }.BuildPassword() });
throw new ApplicationException("测试uow");
await _iRoleService._repository.InsertReturnSnowflakeIdAsync(new RoleEntity { RoleName = "测试", RoleCode = "tt" });
await _iRoleService.UowTest();
return Result.Success();
}