CallWithException2() приватный Метод

private CallWithException2 ( ) : void
Результат void
        public void CallWithException2()
        {
            RootService service = container.Resolve <RootService>();

            try
            {
                service.CallWithException2();
            }
            catch (NotSupportedException)
            {
            }

            // Ensure rollback happened

            Array blogs     = service.FindAll(typeof(Blog));
            Array blogitems = service.FindAll(typeof(BlogItem));

            Assert.IsEmpty(blogs);
            Assert.IsEmpty(blogitems);
        }
        public void CallWithException2()
        {
            RootService service = (RootService)container["root"];

            try
            {
                service.CallWithException2();
            }
            catch (Exception)
            {
            }

            // Ensure rollback happened

            Array blogs     = service.FindAll(typeof(Blog));
            Array blogitems = service.FindAll(typeof(BlogItem));

            Assert.IsNull(blogs);
            Assert.IsNull(blogitems);
        }