public void SetUp()
 {
     Initialize();
     townRepository.Setup(x => x.GetAll()).Returns(new List<Town>
     {
         new Town
         {
             CityName = "Foshan",
             DistrictName = "Chancheng",
             TownName = "Qinren",
             Id = 122
         }
     }.AsQueryable());
     townRepository.Setup(x => x.GetAllList()).Returns(townRepository.Object.GetAll().ToList());
     townRepository.Setup(x => x.Count()).Returns(townRepository.Object.GetAll().Count());
     helper = new BtsRepositorySaveBtsTestHelper(repository, btsInfos, townRepository.Object);
 }
 public void SetUp()
 {
     Initialize();
     townRepository.Setup(x => x.GetAll()).Returns(new List <Town>
     {
         new Town
         {
             CityName     = "Foshan",
             DistrictName = "Chancheng",
             TownName     = "Qinren",
             Id           = 122
         }
     }.AsQueryable());
     townRepository.Setup(x => x.GetAllList()).Returns(townRepository.Object.GetAll().ToList());
     townRepository.Setup(x => x.Count()).Returns(townRepository.Object.GetAll().Count());
     helper = new BtsRepositorySaveBtsTestHelper(repository, btsInfos, townRepository.Object);
 }