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 IClientCommonService _formSetService; public OpTest(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; db = (SqlSugarScope)_serviceProvider.GetRequiredService(); saasService = _serviceProvider.GetRequiredService(); _formSetService = _serviceProvider.GetRequiredService(); } [Fact] public async void OpTest1() { //var tenantDb = saasService.GetBizDbScopeById("1750335377144680448"); var data = await _formSetService.GetFormSetCreateInfoAsync("1750335377144680448"); Assert.True(true); } }