public void AddNewHallTest() { var hall = HallValidator.HallAddValidation("test"); Assert.True(hall); var searchHall = HallValidator.GetHallByName("test"); Assert.True(searchHall.GetType() == typeof(Hall)); HallValidator.HallDeleteValidation(searchHall.Id); }
private void SaveHall() { if (Cache.Hall.Id != 0) { HallValidator.HallUpdateValidation(Cache.Hall.Id, Cache.Hall.Name); } else { HallValidator.HallAddValidation(Cache.Hall.Name); } }