public void Should_Find_Definition_From_PropertyGroup_For_ClassPropertyGroupAndTabDefinitionTypedPageData()
        {
            var typedPageData = new ClassPropertyGroupAndTabDefinitionTypedPageData();
            SetupTabBasedPropertiesAndPropertyGroupPageDataProperties(typedPageData);

            _locator = new AuthorizedPropertyDefinitionLocator(typedPageData, typedPageData.GetType(), new FakeTabDefinitionRepository());

            var actualDefinitionList = _locator.GetAuthorizedPropertyDefinitions();
            Assert.IsTrue(actualDefinitionList.First().AuthorizedPrincipals.Contains("RolePropertyGroup"));
        }
        public void Locator_Should_Discover_One_Definition_From_ClassPropertyGroupAndTabDefinitionTypedPageData()
        {
            var typedPageData = new ClassPropertyGroupAndTabDefinitionTypedPageData();
            SetupTabBasedPropertiesAndPropertyGroupPageDataProperties(typedPageData);

            _locator = new AuthorizedPropertyDefinitionLocator(typedPageData, typedPageData.GetType(), new FakeTabDefinitionRepository());

            var actualDefinitionList = _locator.GetAuthorizedPropertyDefinitions();
            Assert.IsTrue(actualDefinitionList.Count == 1);
        }