public void VerifyResourceTypes_TemplateAppliesToNoType( ) { var template = new Model.ReportTemplate( ); var settings = new ReportTemplateSettings( ); ReportTemplateInterface.VerifyResourceTypes(settings, template); }
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); }
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); }
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); }