|
@@ -18,6 +18,7 @@ using Hotline.ThirdAccountDomainServices;
|
|
using Hotline.Repository.SqlSugar.Extensions;
|
|
using Hotline.Repository.SqlSugar.Extensions;
|
|
using Hotline.Snapshot.IRepository;
|
|
using Hotline.Snapshot.IRepository;
|
|
using Hotline.Application.Snapshot.Contracts;
|
|
using Hotline.Application.Snapshot.Contracts;
|
|
|
|
+using Hotline.Application.Snapshot;
|
|
|
|
|
|
namespace Hotline.Tests.Application;
|
|
namespace Hotline.Tests.Application;
|
|
public class IndustryApplicationTest : TestBase
|
|
public class IndustryApplicationTest : TestBase
|
|
@@ -41,6 +42,14 @@ public class IndustryApplicationTest : TestBase
|
|
items.ShouldNotBeNull();
|
|
items.ShouldNotBeNull();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ [Fact]
|
|
|
|
+ public async Task GetIndustryDetail_Test()
|
|
|
|
+ {
|
|
|
|
+ var industry = await _industryApplication.GetIndustres(new IndustryListInDto("电气焊", null)).FirstAsync();
|
|
|
|
+ var detail = await _industryApplication.GetIndustryDetailAsync(industry.Id, CancellationToken.None);
|
|
|
|
+ detail.Name.ShouldNotBeNull();
|
|
|
|
+ }
|
|
|
|
+
|
|
[Fact]
|
|
[Fact]
|
|
public async Task UpdateIndustry_Test()
|
|
public async Task UpdateIndustry_Test()
|
|
{
|
|
{
|