7 changed files with 21 additions and 103 deletions
@ -1,18 +0,0 @@ |
|||
using Lion.AbpPro.FreeSqlReppsitory.Tests; |
|||
using Lion.AbpPro.Localization; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Lion.AbpPro |
|||
{ |
|||
public abstract class AbpProFreeSqlRepositoryTestBase: AbpProTestBase<AbpProFreeSqlRepositoryTestModule> |
|||
{ |
|||
public AbpProFreeSqlRepositoryTestBase() |
|||
{ |
|||
ServiceProvider.InitializeLocalization(); |
|||
} |
|||
} |
|||
} |
|||
@ -1,30 +0,0 @@ |
|||
using Microsoft.Extensions.Configuration; |
|||
using Microsoft.Extensions.DependencyInjection; |
|||
using Volo.Abp.Modularity; |
|||
|
|||
namespace Lion.AbpPro.FreeSqlReppsitory.Tests; |
|||
|
|||
[DependsOn( |
|||
typeof(AbpProTestBaseModule), |
|||
typeof(AbpProFreeSqlModule) |
|||
)] |
|||
|
|||
public class AbpProFreeSqlRepositoryTestModule: AbpModule |
|||
{ |
|||
|
|||
//public override void ConfigureServices(ServiceConfigurationContext context)
|
|||
//{
|
|||
|
|||
|
|||
|
|||
// var configuration = context.Services.GetConfiguration();
|
|||
// var connectionString = configuration.GetConnectionString("Default");
|
|||
// var freeSql = new FreeSql.FreeSqlBuilder()
|
|||
// .UseConnectionString(FreeSql.DataType.Sqlite, @"Data Source=|DataDirectory|\document.db;Pooling=true;Max Pool Size=10")
|
|||
// .UseAutoSyncStructure(true)
|
|||
// .Build();
|
|||
|
|||
// context.Services.AddSingleton<IFreeSql>(freeSql);
|
|||
//}
|
|||
|
|||
} |
|||
@ -1,13 +0,0 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
<Import Project="..\..\..\common.props" /> |
|||
<PropertyGroup> |
|||
<TargetFramework>net6.0</TargetFramework> |
|||
<RootNamespace>Lion.AbpPro</RootNamespace> |
|||
<IsPackable>false</IsPackable> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<ProjectReference Include="..\..\src\Lion.AbpPro.FreeSqlReppsitory\Lion.AbpPro.FreeSqlReppsitory.csproj" /> |
|||
<ProjectReference Include="..\Lion.AbpPro.TestBase\Lion.AbpPro.TestBase.csproj" /> |
|||
</ItemGroup> |
|||
|
|||
</Project> |
|||
@ -1,29 +0,0 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Shouldly; |
|||
using Xunit; |
|||
|
|||
namespace Lion.AbpPro.Users |
|||
{ |
|||
|
|||
|
|||
public class UserFreeSqlBasicRepository_Tests: AbpProFreeSqlRepositoryTestBase |
|||
{ |
|||
//private readonly IUserFreeSqlBasicRepository _userFreeSqlBasicRepository;
|
|||
//public UserFreeSqlBasicRepositoryTest()
|
|||
//{
|
|||
// _userFreeSqlBasicRepository = GetRequiredService<IUserFreeSqlBasicRepository>();
|
|||
//}
|
|||
|
|||
[Fact] |
|||
public void Should_NotThrow_ListAsyncTest() |
|||
{ |
|||
//var result = await _userFreeSqlBasicRepository.GetListAsync();
|
|||
var s = 1; |
|||
} |
|||
} |
|||
|
|||
} |
|||
Loading…
Reference in new issue