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); }
public int SaveArea(Area entity) { return(AreaDao.Save(entity)); }