public void MetaIds_Should_Have_Attribute_MustContainOneOfEachCategoryAttribute() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <Concept, MustContainOneOfEachCategoryAttribute>(nameof(Concept.MetaIds))); }
public void Returns_True_If_Attribute_Exist_On_Property() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <Dummy, RequiredAttribute>(nameof(Dummy.HaveRequiredAttribute))); }
public void Meta_Should_Have_Attribute_NotMapped() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <Concept, NotMappedAttribute>(nameof(Concept.Meta))); }
public void MetaIds_Should_Have_Attribute_NoDuplicateIntValues() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <Concept, NoDuplicateIntValuesAttribute>(nameof(Concept.MetaIds))); }
public void Source_Should_Not_Have_Attribute_Required() { Assert.False(AttributeHelper.AttributeIsPresentOnProperty <Concept, RequiredAttribute>(nameof(Concept.Source))); }
public void StatusId_Should_Have_Attribute_StatusIdExistsInDatabase() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <Concept, StatusIdExistsInDatabaseAttribute>(nameof(Concept.StatusId))); }
public void Content_Should_Have_Attribute_Required() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <Concept, RequiredAttribute>(nameof(Concept.Content))); }
public void Title_Should_Have_Attribute_FromQuery() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <ConceptSearchQuery, FromQueryAttribute>(nameof(ConceptSearchQuery.Title))); }
public void Errors_Should_Have_Attribute_JsonIgnored() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <BaseResponse, JsonIgnoreAttribute>(nameof(BaseResponse.Errors))); }
public void RenderedErrors_Should_Have_JsonProperty() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <BaseResponse, JsonPropertyAttribute>(nameof(BaseResponse.RenderedErrors))); }
public void Name_Should_Have_Attribute_Required() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <Status, RequiredAttribute>(nameof(Status.Name))); }
public void Name_Should_Have_Attribute_Required() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <MetaCategory, RequiredAttribute>(nameof(MetaCategory.Name))); }
public void QueryDataList_Should_Have_Attribute_FromQuery() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <ConceptSearchQuery, FromQueryAttribute>(nameof(ConceptSearchQuery.MetaIds))); }
public void Returns_False_If_Attribute_Does_Not_Exist_On_Property() { Assert.False(AttributeHelper.AttributeIsPresentOnProperty <Dummy, RequiredAttribute>(nameof(Dummy.DoesNotHaveRequiredAttribute))); }
public void SourceAuthor_Should_Have_Attribute_Required() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <Concept, RequiredAttribute>(nameof(Concept.SourceAuthor))); }
public void Description_Should_Have_Attribute_Required() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <MetaData, RequiredAttribute>(nameof(MetaData.Description))); }
public void Category_Should_Have_Attribute_FromQuery() { Assert.True(AttributeHelper.AttributeIsPresentOnProperty <MetaSearchQuery, FromQueryAttribute>(nameof(MetaSearchQuery.Category))); }