Пример #1
0
        public void TestUpdate()
        {
            Country country = _dataGenerator.CreateCountry();
            Area    area    = _dataGenerator.CreateArea(country: country, name: "oldname");

            area.Name = "newname";

            IAreaDao areaDao = new AreaDao(_graphClient);

            areaDao.Save(area);

            Assert.AreEqual("newname", areaDao.GetAllIn(country).First().Name);
        }
Пример #2
0
 public int SaveArea(Area entity)
 {
     return(AreaDao.Save(entity));
 }