mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-22 12:09:19 +08:00
fix issue #I3IVVC
代码生成器调整为按新的结构生成代码
This commit is contained in:
@@ -39,7 +39,7 @@ namespace OpenAuth.App.Test
|
||||
|
||||
//模拟路径
|
||||
var path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
|
||||
.Replace("\\OpenAuth.App\\bin\\Debug\\net5.0","");
|
||||
.Replace("\\OpenAuth.App\\bin\\Debug\\netcoreapp3.1","");
|
||||
var mockPathProvider = new Mock<IPathProvider>();
|
||||
mockPathProvider.Setup(x => x.MapPath("",false)).Returns(path);
|
||||
services.AddScoped(x => mockHttpFac.Object);
|
||||
@@ -70,15 +70,6 @@ namespace OpenAuth.App.Test
|
||||
public void CreateEntity()
|
||||
{
|
||||
var app = _autofacServiceProvider.GetService<BuilderTableApp>();
|
||||
// var id = app.Add(new AddOrUpdateBuilderTableReq()
|
||||
// {
|
||||
// TableName = "application",
|
||||
// Comment = "这是一个普通的应用管理生成模版",
|
||||
// ClassName = "Application",
|
||||
// Folder = "Application",
|
||||
// ModuleCode = "Application",
|
||||
// ModuleName = "模块管理"
|
||||
// });
|
||||
|
||||
app.CreateEntity(new CreateEntityReq
|
||||
{
|
||||
|
Reference in New Issue
Block a user