Example #1
0
        public void Exists()
        {
            Data.ArtDatabankenService.IndividualCategoryList categoryList;
            categoryList = IndividualCategoryManager.GetIndividualCategories();

            Assert.IsTrue(categoryList.Exists(GetIndividualCategory()));
        }
Example #2
0
        public void GetIndividualCategories()
        {
            List <WebIndividualCategory> individualCategories;

            individualCategories = IndividualCategoryManager.GetIndividualCategories(GetContext());
            Assert.IsNotNull(individualCategories);
            Assert.IsTrue(individualCategories.IsNotEmpty());
        }
Example #3
0
        public static Data.ArtDatabankenService.IndividualCategoryList GetSomeIndividualCategories()
        {
            Data.ArtDatabankenService.IndividualCategoryList individualCategories;

            individualCategories = new Data.ArtDatabankenService.IndividualCategoryList();
            individualCategories.AddRange(IndividualCategoryManager.GetIndividualCategories().GetRange(2, 8));
            return(individualCategories);
        }
Example #4
0
        public void GetIndividualCategories()
        {
            Data.ArtDatabankenService.IndividualCategoryList individualCategories;

            individualCategories = IndividualCategoryManager.GetIndividualCategories();
            Assert.IsNotNull(individualCategories);
            Assert.IsTrue(individualCategories.IsNotEmpty());
        }
        public void IndividualCategories()
        {
            UserParameterSelection userParameterSelection = GetUserParameterSelection();

            Assert.AreEqual(userParameterSelection.IndividualCategories.IsNotEmpty(), userParameterSelection.HasIndividualCategories);

            userParameterSelection.IndividualCategories.Merge(IndividualCategoryManager.GetIndividualCategories());
            Assert.IsTrue(userParameterSelection.IndividualCategories.IsNotEmpty());
            Assert.IsTrue(userParameterSelection.IndividualCategories.Count > 15);
            Assert.IsTrue(userParameterSelection.HasIndividualCategories);
        }
Example #6
0
        public static List <Int32> GetSomeIndividualCategoryIds(WebServiceContext context,
                                                                Int32 individualCategoryIdCount)
        {
            List <Int32> individualCategoryIds;

            individualCategoryIds = new List <Int32>();
            foreach (WebIndividualCategory individualCategory in IndividualCategoryManager.GetIndividualCategories(context))
            {
                if (individualCategoryIds.Count >= individualCategoryIdCount)
                {
                    break;
                }
                individualCategoryIds.Add(individualCategory.Id);
            }
            return(individualCategoryIds);
        }
Example #7
0
 public static WebIndividualCategory GetIndividualCategory(WebServiceContext context)
 {
     return(IndividualCategoryManager.GetIndividualCategories(context)[0]);
 }
Example #8
0
        //
        // You can use the following additional attributes as you write your tests:
        //
        // Use ClassInitialize to run code before running the first test in the class
        // [ClassInitialize()]
        // public static void MyClassInitialize(TestContext testContext) { }
        //
        // Use ClassCleanup to run code after all tests in a class have run
        // [ClassCleanup()]
        // public static void MyClassCleanup() { }
        //
        // Use TestInitialize to run code before running each test
        // [TestInitialize()]
        // public void MyTestInitialize() { }
        //
        // Use TestCleanup to run code after each test has run
        // [TestCleanup()]
        // public void MyTestCleanup() { }
        //
        #endregion

        private Data.ArtDatabankenService.IndividualCategory GetIndividualCategory()
        {
            return(IndividualCategoryManager.GetIndividualCategories()[0]);
        }
Example #9
0
 public static Data.ArtDatabankenService.IndividualCategory GetOneIndividualCategory()
 {
     return(IndividualCategoryManager.GetIndividualCategories()[0]);
 }