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() { Terrace = new ListCollectionView((new[] { NullTerrace }).Concat(_TerraceService.GetAll()).ToList()); Layout = new ListCollectionView((new[] { NullLayout }).Concat(_LayoutService.GetAll()).ToList()); Material = new ListCollectionView((new[] { NullMaterial }).Concat(_MaterialService.GetAll()).ToList()); FloorLevel = new ListCollectionView((new[] { NullFloorLevel }).Concat(_FloorLevelService.GetAll()).ToList()); }