删除多余的类

This commit is contained in:
yubaolee 2021-03-26 16:12:05 +08:00
parent f164566d2d
commit 31811e9d9c
2 changed files with 0 additions and 71 deletions

View File

@ -1,40 +0,0 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using OpenAuth.App.Interface;
using OpenAuth.App.Request;
using OpenAuth.Repository;
using OpenAuth.Repository.Domain;
using OpenAuth.Repository.Interface;
namespace OpenAuth.App
{
/// <summary>
/// 主键为numberic类型的业务使用BaseLongApp基类
/// </summary>
public class IntAutoGenApp :BaseIntAutoGenApp<IntAutoGen, OpenAuthDBContext>
{
public void Add(IntAutoGen application)
{
Repository.Add(application);
}
public void Update(IntAutoGen application)
{
Repository.Update(application);
}
public async Task<List<IntAutoGen>> GetList(QueryAppListReq request)
{
var applications = UnitWork.Find<IntAutoGen>(null) ;
return applications.ToList();
}
public IntAutoGenApp(IUnitWork<OpenAuthDBContext> unitWork, IRepository<IntAutoGen,OpenAuthDBContext> repository,IAuth auth)
: base(unitWork, repository, auth)
{
}
}
}

View File

@ -1,31 +0,0 @@
using System;
using NUnit.Framework;
using Microsoft.Extensions.DependencyInjection;
using OpenAuth.Repository.Domain;
namespace OpenAuth.App.Test
{
public class TestIntAutoGenApp :TestBase
{
[Test]
public void Add()
{
var app = _autofacServiceProvider.GetService<IntAutoGenApp>();
var intAutoGen = new IntAutoGen
{
Name = DateTime.Now.ToString()
};
app.Add(intAutoGen);
Console.WriteLine($"new Id:{intAutoGen.Id}");
}
[Test]
public void Del()
{
var app = _autofacServiceProvider.GetService<IntAutoGenApp>();
app.Delete(new []{1, 2});
}
}
}