diff --git a/OpenAuth.App/IntAutoGenApp.cs b/OpenAuth.App/IntAutoGenApp.cs deleted file mode 100644 index 7a21762b..00000000 --- a/OpenAuth.App/IntAutoGenApp.cs +++ /dev/null @@ -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 -{ - /// - /// 主键为numberic类型的业务,使用BaseLongApp基类 - /// - public class IntAutoGenApp :BaseIntAutoGenApp - { - public void Add(IntAutoGen application) - { - Repository.Add(application); - } - - public void Update(IntAutoGen application) - { - Repository.Update(application); - } - - - public async Task> GetList(QueryAppListReq request) - { - var applications = UnitWork.Find(null) ; - - return applications.ToList(); - } - - public IntAutoGenApp(IUnitWork unitWork, IRepository repository,IAuth auth) - : base(unitWork, repository, auth) - { - } - } -} \ No newline at end of file diff --git a/OpenAuth.App/Test/TestIntAutoGenApp.cs b/OpenAuth.App/Test/TestIntAutoGenApp.cs deleted file mode 100644 index 353088d2..00000000 --- a/OpenAuth.App/Test/TestIntAutoGenApp.cs +++ /dev/null @@ -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(); - 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(); - app.Delete(new []{1, 2}); - } - - } -}