public void Should_return_false_for_competencyLevel_descriptor_resource() { AssertHelper.All( () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( typeof(ModelResources.CompetencyLevelDescriptor.EdFi.CompetencyLevelDescriptor)), Is.False), () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( nameof(ModelResources.CompetencyLevelDescriptor.EdFi.CompetencyLevelDescriptor)), Is.False) ); }
public void Should_return_true_for_assessmentPeriod_descriptor_resource() { AssertHelper.All( () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( typeof(ModelResources.AssessmentPeriodDescriptor.EdFi.AssessmentPeriodDescriptor)), Is.True), () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( nameof(ModelResources.AssessmentPeriodDescriptor.EdFi.AssessmentPeriodDescriptor)), Is.True) ); }
public void Should_return_false_for_competencyLevel_descriptor_entity() { AssertHelper.All( () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( typeof(NHibernateEntities.CompetencyLevelDescriptorAggregate.EdFi.CompetencyLevelDescriptor)), Is.False), () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( nameof(NHibernateEntities.CompetencyLevelDescriptorAggregate.EdFi.CompetencyLevelDescriptor)), Is.False) ); }
public void Should_return_true_for_performanceLevel_descriptor_resource() { AssertHelper.All( () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( typeof(ModelResources.PerformanceLevelDescriptor.EdFi.PerformanceLevelDescriptor)), Is.True), () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( nameof(ModelResources.PerformanceLevelDescriptor.EdFi.PerformanceLevelDescriptor)), Is.True) ); }
public void Should_return_true_for_assessmentPeriod_descriptor_entity() { AssertHelper.All( () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( typeof(NHibernateEntities.AssessmentPeriodDescriptorAggregate.EdFi.AssessmentPeriodDescriptor)), Is.True), () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( nameof(NHibernateEntities.AssessmentPeriodDescriptorAggregate.EdFi.AssessmentPeriodDescriptor)), Is.True) ); }
public void Should_return_true_for_accommodation_descriptor_resource() { AssertHelper.All( () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( typeof(Api.Common.Models.Resources.AccommodationDescriptor.EdFi.AccommodationDescriptor)), Is.True), () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( nameof(Api.Common.Models.Resources.AccommodationDescriptor.EdFi.AccommodationDescriptor)), Is.True) ); }
public void Should_return_true_for_accommodation_descriptor_entity() { AssertHelper.All( () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( typeof(AccommodationDescriptor)), Is.True), () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( nameof(AccommodationDescriptor)), Is.True) ); }
public void Should_return_false_for_diagnosis_descriptor_entity() { AssertHelper.All( () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( typeof(DiagnosisDescriptor)), Is.False), () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( nameof(DiagnosisDescriptor)), Is.False) ); }
private string GetParentResource(Entity entity) { var resourceName = entity.Name; if (resourceName.EndsWith("type", StringComparison.InvariantCultureIgnoreCase)) { return("types"); } if (DescriptorEntitySpecification.IsEdFiDescriptorEntity(resourceName)) { return(ManagedDescriptorSpecification.IsEdFiManagedDescriptor(resourceName) ? "managedDescriptors" : "systemDescriptors"); } if (EducationOrganizationEntitySpecification.IsEducationOrganizationEntity(resourceName)) { return("educationOrganizations"); } if (PersonEntitySpecification.IsPersonEntity(resourceName)) { return("people"); } if (AssessmentSpecification.IsAssessmentEntity(resourceName)) { return("assessmentMetadata"); } if (resourceName.Equals("educationContent", StringComparison.InvariantCultureIgnoreCase)) { return(null); } if (EducationStandardSpecification.IsEducationStandardEntity(resourceName)) { return("educationStandards"); } if (PrimaryRelationshipEntitySpecification.IsPrimaryRelationshipEntity(resourceName)) { return("primaryRelationships"); } if (SurveySpecification.IsSurveyEntity(resourceName)) { return("surveyDomain"); } return("relationshipBasedData"); }
public void Should_return_false_for_diagnosis_descriptor_resource() { AssertHelper.All( () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( typeof(Api.Common.Models.Resources.DiagnosisDescriptor.EdFi.DiagnosisDescriptor)), Is.False), () => Assert.That( ManagedDescriptorSpecification.IsEdFiManagedDescriptor( nameof(Api.Common.Models.Resources.DiagnosisDescriptor.EdFi.DiagnosisDescriptor)), Is.False) ); }