public void Remove_SimpleItem_forEntity_OK()
        {
            /// changed pk for tests

            var removeEntity = instance.Find(99);

            int result   = instance.Remove(removeEntity);
            int expected = 0;

            Assert.AreEqual(expected, result);
        }
        private void DeleteExecute()
        {
            _repository.Remove(SelectedItem);

            Data.Remove(SelectedItem);
        }
Пример #3
0
        public ActionResult DeleteConfirmed(int id)
        {
            _repository.Remove(id);

            return(RedirectToAction("Index"));
        }