Ejemplo n.º 1
0
            protected override void Act()
            {
                _suppliedResource = new Resource_Resource("TestResource");

                var filterProvider = new ProfileResourceMembersFilterProvider();

                var definition = XElement.Parse(
                    @"
<ClassDefinition name='TestResource' memberSelection='IncludeAll'>
</ClassDefinition>");

                _actualMemberFilter = filterProvider.GetMemberFilter(_suppliedResource, definition);
            }
Ejemplo n.º 2
0
            protected override void Act()
            {
                _suppliedResource = GetTestResource();

                var filterProvider = new ProfileResourceMembersFilterProvider();

                var definition = XElement.Parse(
                    @"
<ClassDefinition name='TestResource' memberSelection='ExcludeOnly'>
    <Property name='ExcludedProperty1' />
    <Property name='ExcludedPropertyWithExpansionOnUSI' />
    <Object name='ExcludedObject1' />
    <Collection name='ExcludedCollection1' />
</ClassDefinition>");

                _actualMemberFilter = filterProvider.GetMemberFilter(_suppliedResource, definition);
            }
Ejemplo n.º 3
0
            protected override void Act()
            {
                _suppliedResource = GetTestResourceForWithAnExtension();

                var filterProvider = new ProfileResourceMembersFilterProvider();

                var definition = XElement.Parse(
                    @"
<ClassDefinition name='CoreEntity' memberSelection='IncludeOnly'>
    <Object name='IncludedObject1' memberSelection='IncludeAll' />
    <Collection name='Collection1Items' memberSelection='IncludeOnly'>
        <Object name='IncludedCollectionObject1' memberSelection='IncludeAll' />
    </Collection>
    <Extension name='Extension-Logical'  memberSelection='IncludeOnly'>
        <Property name='AssessmentCategoryDescriptor'/>
    </Extension>
</ClassDefinition>");

                _actualMemberFilter = filterProvider.GetMemberFilter(_suppliedResource, definition);
            }