@@ -71,5 +71,7 @@ public class IndustryApplicationTest : TestBase
var caseId = await _industryApplication.AddIndustryCaseAsync(industryCase);
var items = await _industryApplication.GetIndustryCaseItems(new IndustryCaseItemInDto(null, null)).ToListAsync();
items.Count.ShouldNotBe(0);
+ items.Any(m => m.Id.IsNullOrEmpty()).ShouldBeFalse();
+ items.Any(m => m.Name.IsNullOrEmpty()).ShouldBeFalse();
}
@@ -114,6 +114,8 @@ public class IndustryApplication : IIndustryApplication, IScopeDependency
.WhereIF(dto.CaseName.NotNullOrEmpty(), (c, i) => c.Name.Contains(dto.CaseName))
.Select<IndustryCaseItemOutDto>((c, i) =>
new IndustryCaseItemOutDto {
+ Id = c.Id,
+ Name = c.Name,
IndustryId = i.Id,
IndustryName = i.Name});
return query;