示例#1
0
        public void VerifyResourceTypes_TemplateAppliesToNoType( )
        {
            var template = new Model.ReportTemplate( );

            var settings = new ReportTemplateSettings( );

            ReportTemplateInterface.VerifyResourceTypes(settings, template);
        }
示例#2
0
        public void VerifyResourceTypes_NoResourcesProvided( )
        {
            var template = new Model.ReportTemplate( );

            template.ReportTemplateAppliesToType = Entity.Get <EntityType>("test:person");

            var settings = new ReportTemplateSettings( );

            settings.SelectedResources = new List <EntityRef>( );

            ReportTemplateInterface.VerifyResourceTypes(settings, template);
        }
示例#3
0
        public void VerifyResourceTypes_RightExactResourcesProvided( )
        {
            var template = new Model.ReportTemplate( );

            template.ReportTemplateAppliesToType = Entity.Get <EntityType>("test:drink");

            var settings = new ReportTemplateSettings( );

            settings.SelectedResources = new List <EntityRef>( );
            settings.SelectedResources.Add(new EntityRef("test:aaCoke"));

            ReportTemplateInterface.VerifyResourceTypes(settings, template);
        }
示例#4
0
        public void VerifyResourceTypes_AncestorResourcesProvided( )
        {
            var template = new Model.ReportTemplate( );

            template.ReportTemplateAppliesToType = Entity.Get <EntityType>("test:manager");

            var settings = new ReportTemplateSettings( );

            settings.SelectedResources = new List <EntityRef>( );
            settings.SelectedResources.Add(new EntityRef("test:aaDavidQuint"));

            ReportTemplateInterface.VerifyResourceTypes(settings, template);
        }