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

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

            individualCategories = IndividualCategoryManager.GetIndividualCategories(GetContext());
            Assert.IsNotNull(individualCategories);
            Assert.IsTrue(individualCategories.IsNotEmpty());
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#7
0
 public static WebIndividualCategory GetIndividualCategory(WebServiceContext context)
 {
     return(IndividualCategoryManager.GetIndividualCategories(context)[0]);
 }
示例#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]);
        }
示例#9
0
 public static Data.ArtDatabankenService.IndividualCategory GetOneIndividualCategory()
 {
     return(IndividualCategoryManager.GetIndividualCategories()[0]);
 }