Esempio n. 1
0
        public void Filter_Fetch_List()
        {
            var filter = FilterService.FilterNew();

            filter.Name   = DataHelper.RandomString(20);
            filter.Target = DataHelper.RandomString(20);
            filter.Query  = DataHelper.RandomString(20);

            filter = FilterService.FilterSave(filter);

            filter.Name = DataHelper.RandomString(20);

            FilterService.FilterSave(filter);

            var categories = FilterService.FilterFetchInfoList();

            Assert.IsTrue(categories.Count > 1, "Filters should be greater than one");
        }
        public void Filter_Fetch_List()
        {
            BusinessHelper.CreateFilterAndLogon(
                FilterTestsWithRoleContribute.UserName,
                FilterTestsWithRoleContribute.UserPassword);

            BusinessHelper.CreateFilterAndLogon(
                FilterTestsWithRoleContribute.UserName,
                FilterTestsWithRoleContribute.UserPassword);

            Exception exception = null;

            try
            {
                FilterService.FilterFetchInfoList();
            }
            catch (Exception ex)
            {
                exception = ex;
            }

            Assert.IsTrue(exception == null, "Exception should be null");
        }