C# Class Rebel.Tests.Extensions.HiveModelCreationHelper

Afficher le fichier Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Méthodes publiques

Свойство Type Description
BoolDefAlias string
DefAlias1WithType1 string
DefAlias2WithType1 string
TypeAlias1 string
TypeAlias2 string

Méthodes publiques

Méthode Description
CreateAttribute ( AttributeDefinition def, object value ) : TypedAttribute
CreateAttributeDefinition ( string alias, string name, string description, AttributeType typeDef, AttributeGroup groupDef, bool assignId = false ) : AttributeDefinition
CreateAttributeGroup ( string alias, string name, int ordinal, bool assignId = false ) : AttributeGroup
CreateAttributeType ( string alias, string name, string description, bool assignId = false ) : AttributeType
CreateEntitySchema ( string alias, string name ) : EntitySchema
CreateEntitySchema ( string alias, string name, bool assignId ) : EntitySchema
CreateTypedEntity ( EntitySchema schema, TypedAttribute attribs, bool assignId = false ) : TypedEntity
CreateVersionedTypedEntity ( EntitySchema schema, TypedAttribute attribs ) : Revision
MockEntitySchema ( string testDoctypeAlias, string testDoctypeName ) : EntitySchema
MockTypedEntity ( ) : TypedEntity
MockTypedEntity ( HiveId id ) : TypedEntity
MockTypedEntity ( bool assignIds ) : TypedEntity
MockVersionedTypedEntity ( ) : Revision

Create a typed persistence entity

MockVersionedTypedEntity ( bool assignIds ) : Revision

Create a typed persistence entity

SetupTestContentData ( System.Guid newGuid, System.Guid newGuidRedHerring, ProviderSetup providerSetup ) : Content
SetupTestData ( System.Guid newGuid, System.Guid newGuidRedHerring, ProviderSetup providerSetup ) : TypedEntity

Private Methods

Méthode Description
CreateMockTypedEntityProperties ( bool assignIds, TypedAttribute[]>.Action callback ) : void

Create some properties for a TypedEntity

Method Details

CreateAttribute() public static méthode

public static CreateAttribute ( AttributeDefinition def, object value ) : TypedAttribute
def AttributeDefinition
value object
Résultat TypedAttribute

CreateAttributeDefinition() public static méthode

public static CreateAttributeDefinition ( string alias, string name, string description, AttributeType typeDef, AttributeGroup groupDef, bool assignId = false ) : AttributeDefinition
alias string
name string
description string
typeDef AttributeType
groupDef Rebel.Framework.Persistence.Model.Attribution.AttributeGroup
assignId bool
Résultat AttributeDefinition

CreateAttributeGroup() public static méthode

public static CreateAttributeGroup ( string alias, string name, int ordinal, bool assignId = false ) : AttributeGroup
alias string
name string
ordinal int
assignId bool
Résultat Rebel.Framework.Persistence.Model.Attribution.AttributeGroup

CreateAttributeType() public static méthode

public static CreateAttributeType ( string alias, string name, string description, bool assignId = false ) : AttributeType
alias string
name string
description string
assignId bool
Résultat AttributeType

CreateEntitySchema() public static méthode

public static CreateEntitySchema ( string alias, string name ) : EntitySchema
alias string
name string
Résultat EntitySchema

CreateEntitySchema() public static méthode

public static CreateEntitySchema ( string alias, string name, bool assignId ) : EntitySchema
alias string
name string
assignId bool
Résultat EntitySchema

CreateTypedEntity() public static méthode

public static CreateTypedEntity ( EntitySchema schema, TypedAttribute attribs, bool assignId = false ) : TypedEntity
schema EntitySchema
attribs TypedAttribute
assignId bool
Résultat TypedEntity

CreateVersionedTypedEntity() public static méthode

public static CreateVersionedTypedEntity ( EntitySchema schema, TypedAttribute attribs ) : Revision
schema EntitySchema
attribs TypedAttribute
Résultat Revision

MockEntitySchema() public static méthode

public static MockEntitySchema ( string testDoctypeAlias, string testDoctypeName ) : EntitySchema
testDoctypeAlias string
testDoctypeName string
Résultat EntitySchema

MockTypedEntity() public static méthode

public static MockTypedEntity ( ) : TypedEntity
Résultat TypedEntity

MockTypedEntity() public static méthode

public static MockTypedEntity ( HiveId id ) : TypedEntity
id HiveId
Résultat TypedEntity

MockTypedEntity() public static méthode

public static MockTypedEntity ( bool assignIds ) : TypedEntity
assignIds bool
Résultat TypedEntity

MockVersionedTypedEntity() public static méthode

Create a typed persistence entity
public static MockVersionedTypedEntity ( ) : Revision
Résultat Revision

MockVersionedTypedEntity() public static méthode

Create a typed persistence entity
public static MockVersionedTypedEntity ( bool assignIds ) : Revision
assignIds bool whether or not to generate Ids for each entity
Résultat Revision

SetupTestContentData() public static méthode

public static SetupTestContentData ( System.Guid newGuid, System.Guid newGuidRedHerring, ProviderSetup providerSetup ) : Content
newGuid System.Guid
newGuidRedHerring System.Guid
providerSetup Rebel.Hive.ProviderSetup
Résultat Content

SetupTestData() public static méthode

public static SetupTestData ( System.Guid newGuid, System.Guid newGuidRedHerring, ProviderSetup providerSetup ) : TypedEntity
newGuid System.Guid
newGuidRedHerring System.Guid
providerSetup Rebel.Hive.ProviderSetup
Résultat TypedEntity

Property Details

BoolDefAlias public_oe static_oe property

public static string BoolDefAlias
Résultat string

DefAlias1WithType1 public_oe static_oe property

public static string DefAlias1WithType1
Résultat string

DefAlias2WithType1 public_oe static_oe property

public static string DefAlias2WithType1
Résultat string

TypeAlias1 public_oe static_oe property

public static string TypeAlias1
Résultat string

TypeAlias2 public_oe static_oe property

public static string TypeAlias2
Résultat string