|
@@ -55,7 +55,7 @@ public class BiSnapshotApplicationTest : TestBase
|
|
|
if (hasChild.SumCount != 0)
|
|
|
{
|
|
|
var inDto2 = inDto.Adapt<CommunityStatisticsDetailsInDto>();
|
|
|
- inDto2.CommunityFullName = hasChild.CommunityFullName;
|
|
|
+ inDto2.CommunityCode = hasChild.CommunityCode;
|
|
|
var details = await _biSnapshotApplication.GetCommunityStatisticsDetails(inDto2).ToListAsync();
|
|
|
details.Count.ShouldBe(hasChild.SumCount);
|
|
|
}
|
|
@@ -70,7 +70,7 @@ public class BiSnapshotApplicationTest : TestBase
|
|
|
StartTime = DateTime.Now.AddDays(-30),
|
|
|
EndTime = DateTime.Now,
|
|
|
};
|
|
|
- var items = await _biSnapshotApplication.GetCountyRedPackStatistics(inDto);
|
|
|
+ var items = await _biSnapshotApplication.GetCountyRedPackStatistics(inDto).ToListAsync();
|
|
|
|
|
|
var transposedItems = items.SelectMany(item => item.GetType().GetProperties()
|
|
|
.Select(prop => new { Property = prop.Name, Value = prop.GetValue(item) }))
|