private static void ValidateDictToCount(int count) { Debug.Assert(dealVariantService.GetAll().Count() == count); Debug.Assert(districtService.GetAll().Count() == count); Debug.Assert(floorLevelService.GetAll().Count() == count); Debug.Assert(layoutService.GetAll().Count() == count); Debug.Assert(materialService.GetAll().Count() == count); Debug.Assert(ownershipService.GetAll().Count() == count); Debug.Assert(realtorService.GetAll().Count() == count); Debug.Assert(sewageService.GetAll().Count() == count); Debug.Assert(terraceService.GetAll().Count() == count); Debug.Assert(toiletTypeService.GetAll().Count() == count); Debug.Assert(waterSupplyService.GetAll().Count() == count); }
protected override void InitCollection() { Material = new ListCollectionView((new[] { NullMaterial }).Concat(_MaterialService.GetAll()).ToList()); WaterSupply = new ListCollectionView((new[] { NullWaterSupply }).Concat(_WaterSupplyService.GetAll()).ToList()); Sewage = new ListCollectionView((new[] { NullSewage }).Concat(_SewageService.GetAll()).ToList()); }