Exemplo n.º 1
0
        public void Filter_Delete()
        {
            var filter = FilterTestHelper.FilterNew();

            Assert.IsTrue(filter.IsValid, "IsValid should be true");

            filter = FilterRepository.FilterSave(filter);

            filter = FilterRepository.FilterFetch(filter.FilterId);

            FilterRepository.FilterDelete(filter.FilterId);

            try
            {
                FilterRepository.FilterFetch(filter.FilterId);
            }
            catch (Exception ex)
            {
                Assert.IsTrue(ex.GetBaseException() is InvalidOperationException);
            }
        }