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.
55 lines
1.6 KiB
C#
55 lines
1.6 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.Op.Entity;
|
|
using DS.WMS.Core.Op.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;
|
|
private readonly IOpCommonService _commonSetService;
|
|
public OpTest(IServiceProvider serviceProvider)
|
|
{
|
|
_serviceProvider = serviceProvider;
|
|
db = (SqlSugarScope)_serviceProvider.GetRequiredService<ISqlSugarClient>();
|
|
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
|
|
_formSetService = _serviceProvider.GetRequiredService<IClientCommonService>();
|
|
_commonSetService = _serviceProvider.GetRequiredService<IOpCommonService>();
|
|
}
|
|
|
|
[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<SeaExport>();
|
|
|
|
|
|
Assert.True(true);
|
|
}
|
|
|
|
|
|
} |