You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using System.Reflection;
|
|
using DS.Module.Core;
|
|
using DS.Module.Core.Extensions;
|
|
using DS.Module.SqlSugar;
|
|
using DS.WMS.Core.Code.Interface;
|
|
using DS.WMS.Core.System.Entity;
|
|
using DS.WMS.Core.System.Interface;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using SqlSugar;
|
|
using SqlSugar.IOC;
|
|
using Xunit;
|
|
|
|
namespace Ds.WMS.Test;
|
|
|
|
public class OpTest
|
|
{
|
|
private readonly IServiceProvider _serviceProvider;
|
|
private readonly SqlSugarScope db;
|
|
private readonly ISaasDbService saasService;
|
|
private readonly IFormSetService _formSetService;
|
|
public OpTest(IServiceProvider serviceProvider)
|
|
{
|
|
_serviceProvider = serviceProvider;
|
|
db = (SqlSugarScope)_serviceProvider.GetRequiredService<ISqlSugarClient>();
|
|
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
|
|
_formSetService = _serviceProvider.GetRequiredService<IFormSetService>();
|
|
}
|
|
|
|
[Fact]
|
|
public async void SaasTest1()
|
|
{
|
|
//var tenantDb = saasService.GetBizDbScopeById("1750335377144680448");
|
|
|
|
var data = await _formSetService.GetFormSetCreateInfoAsync("1750335377144680448");
|
|
|
|
|
|
Assert.True(true);
|
|
}
|
|
|
|
|
|
|
|
} |