Exemple #1
0
        private CategoryOfPerson BuildCategoryOfPerson()
        {
            var categoryToBuild = new CategoryOfPerson();

            categoryToBuild.Category     = "test";
            categoryToBuild.DisplayOrder = 1;

            return(categoryToBuild);
        }
Exemple #2
0
        public async void CategoryOfPersonROC_TestGetChild()
        {
            const int ID_VALUE = 999;

            var categoryOfPersonType = new CategoryOfPerson()
            {
                Id           = ID_VALUE,
                Category     = "person category 1",
                DisplayOrder = 1
            };

            var categoryOfPersonTypeInfo = await CategoryOfPersonROC.GetCategoryOfPersonROC(categoryOfPersonType);

            Assert.NotNull(categoryOfPersonTypeInfo);
            Assert.IsType <CategoryOfPersonROC>(categoryOfPersonTypeInfo);
            Assert.Equal(categoryOfPersonType.Id, categoryOfPersonTypeInfo.Id);
            Assert.Equal(categoryOfPersonType.Category, categoryOfPersonTypeInfo.Category);
            Assert.Equal(categoryOfPersonType.DisplayOrder, categoryOfPersonTypeInfo.DisplayOrder);
        }