Ejemplo n.º 1
0
        public void Test2()
        {
            RegionService regionSvc = new RegionService();
            var           region    = regionSvc.GetById(1);

            Assert.AreEqual(region.CityName, "北京");
            Assert.AreEqual(region.Name, "海淀区");
            Assert.AreEqual(regionSvc.GetAll(1).Length, 2);

            CommunityService comSvc = new CommunityService();

            Assert.AreEqual(comSvc.GetByRegionId(1).Length, 2);
        }