示例#1
0
 private void SaveHall()
 {
     if (Cache.Hall.Id != 0)
     {
         HallValidator.HallUpdateValidation(Cache.Hall.Id, Cache.Hall.Name);
     }
     else
     {
         HallValidator.HallAddValidation(Cache.Hall.Name);
     }
 }
        public void UpdateHallTest()
        {
            var hall = HallValidator.HallAddValidation("test");

            Assert.True(hall);
            var searchHall = HallValidator.GetHallByName("test");

            Assert.True(searchHall.GetType() == typeof(Hall));
            var updated = HallValidator.HallUpdateValidation(searchHall.Id, "updated");

            Assert.True(updated);
            HallValidator.HallDeleteValidation(searchHall.Id);
        }