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.Op.Entity; using DS.WMS.Core.Op.Interface; using DS.WMS.Core.Sys.Entity; using DS.WMS.Core.Sys.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; private readonly IOpCommonService _commonSetService; public OpTest(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; db = (SqlSugarScope)_serviceProvider.GetRequiredService(); saasService = _serviceProvider.GetRequiredService(); _formSetService = _serviceProvider.GetRequiredService(); _commonSetService = _serviceProvider.GetRequiredService(); } [Fact] public async void OpTest1() { //var tenantDb = saasService.GetBizDbScopeById("1750335377144680448"); var data = await _formSetService.GetFormSetCreateInfoAsync("1750335377144680448"); Assert.True(true); } [Fact] public void OpTest2() { //var tenantDb = saasService.GetBizDbScopeById("1750335377144680448"); //var data = _commonSetService.GetSequenceNext(); Assert.True(true); } }