public void Filter_Fetch()
        {
            var hour = BusinessHelper.CreateFilterAndLogon(
                FilterTestsWithRoleContribute.UserName,
                FilterTestsWithRoleContribute.UserPassword);

            Exception exception = null;

            try
            {
                FilterService.FilterFetch(hour.FilterId);
            }
            catch (Exception ex)
            {
                exception = ex;
            }

            Assert.IsTrue(exception == null, "Exception should be null");
        }
        public void Filter_Cannot_Delete_Record_For_Different_User()
        {
            var hour = BusinessHelper.CreateFilterAndLogon(
                FilterTestsWithRoleContribute.UserName,
                FilterTestsWithRoleContribute.UserPassword);

            Exception exception = null;

            try
            {
                FilterService.FilterDelete(hour.FilterId);
            }
            catch (Exception ex)
            {
                exception = ex;
            }

            Assert.IsTrue(exception != null, "Exception should not be null");
            Assert.IsTrue(exception.GetBaseException() is SecurityException, "Exception should be of type SecurityException");
        }