public void Test_SingleItem(string name, string address, int townId, int btsId, double longtitute, double lattitute) { var infos = new List <BtsExcel> { new BtsExcel { Name = name, Address = address, BtsId = btsId, Longtitute = longtitute, Lattitute = lattitute, DistrictName = "district-" + townId, TownName = "town-" + townId } }; _service.DumpBtsExcels(infos); _btsRepository.Object.Count().ShouldBe(4); _btsRepository.Object.GetAllList()[3].ShouldBe(name, address, townId, btsId, longtitute, lattitute); }
public int Post(NewBtsListContainer container) { return(_dumpService.DumpBtsExcels(container.Infos)); }