ModelValidatorTest ModelValidatorTest Class

Definition

public abstract class ModelValidatorTest
Public MustInherit Class ModelValidatorTest
Inheritance
System.ObjectSystem.Object
ModelValidatorTestModelValidatorTest

Methods

CreateForeignKey(EntityType, IReadOnlyList, Key) CreateForeignKey(EntityType, IReadOnlyList(Of Property), Key)

protected ForeignKey CreateForeignKey(EntityType dependEntityType, IReadOnlyList<Property> dependentProperties, Key principalKey)
Protected Function CreateForeignKey(dependEntityType As EntityType, dependentProperties As IReadOnlyList(Of  Property), principalKey As Key) As ForeignKey
Parameters
dependEntityType
EntityType EntityType
dependentProperties
System.Collections.Generic.IReadOnlyList<Property> System.Collections.Generic.IReadOnlyList(Of Property)
principalKey
Key Key
Returns

CreateForeignKey(Key, Key) CreateForeignKey(Key, Key)

protected ForeignKey CreateForeignKey(Key dependentKey, Key principalKey)
Protected Function CreateForeignKey(dependentKey As Key, principalKey As Key) As ForeignKey
Parameters
dependentKey
Key Key
principalKey
Key Key
Returns

CreateKey(EntityType, Int32, Int32) CreateKey(EntityType, Int32, Int32)

protected Key CreateKey(EntityType entityType, int startingPropertyIndex = -1, int propertyCount = 1)
Protected Function CreateKey(entityType As EntityType, startingPropertyIndex As Integer = -1, propertyCount As Integer = 1) As Key
Parameters
entityType
EntityType EntityType
startingPropertyIndex
System.Int32 System.Int32
propertyCount
System.Int32 System.Int32
Returns

CreateModelValidator() CreateModelValidator()

protected abstract ModelValidator CreateModelValidator()
Protected MustOverride Function CreateModelValidator As ModelValidator
Returns

Detects_a_null_primary_key() Detects_a_null_primary_key()

public virtual void Detects_a_null_primary_key()
Public Overridable Sub Detects_a_null_primary_key

Detects_abstract_leaf_type() Detects_abstract_leaf_type()

public virtual void Detects_abstract_leaf_type()
Public Overridable Sub Detects_abstract_leaf_type

Detects_base_type_not_set() Detects_base_type_not_set()

public virtual void Detects_base_type_not_set()
Public Overridable Sub Detects_base_type_not_set

Detects_changed_only_notifying_entities(ChangeTrackingStrategy) Detects_changed_only_notifying_entities(ChangeTrackingStrategy)

public virtual void Detects_changed_only_notifying_entities(ChangeTrackingStrategy changeTrackingStrategy)
Public Overridable Sub Detects_changed_only_notifying_entities(changeTrackingStrategy As ChangeTrackingStrategy)
Parameters

Detects_generic_leaf_type() Detects_generic_leaf_type()

public virtual void Detects_generic_leaf_type()
Public Overridable Sub Detects_generic_leaf_type

Detects_non_notifying_entities(ChangeTrackingStrategy) Detects_non_notifying_entities(ChangeTrackingStrategy)

public virtual void Detects_non_notifying_entities(ChangeTrackingStrategy changeTrackingStrategy)
Public Overridable Sub Detects_non_notifying_entities(changeTrackingStrategy As ChangeTrackingStrategy)
Parameters

Detects_shadow_entities() Detects_shadow_entities()

public virtual void Detects_shadow_entities()
Public Overridable Sub Detects_shadow_entities

Detects_shadow_key_referenced_by_foreign_key() Detects_shadow_key_referenced_by_foreign_key()

public virtual void Detects_shadow_key_referenced_by_foreign_key()
Public Overridable Sub Detects_shadow_key_referenced_by_foreign_key

Detects_shadow_key_referenced_by_foreign_key_by_convention() Detects_shadow_key_referenced_by_foreign_key_by_convention()

public virtual void Detects_shadow_key_referenced_by_foreign_key_by_convention()
Public Overridable Sub Detects_shadow_key_referenced_by_foreign_key_by_convention

Detects_shadow_keys() Detects_shadow_keys()

public virtual void Detects_shadow_keys()
Public Overridable Sub Detects_shadow_keys

Detects_shadow_keys_by_convention() Detects_shadow_keys_by_convention()

public virtual void Detects_shadow_keys_by_convention()
Public Overridable Sub Detects_shadow_keys_by_convention

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

Pases_on_correct_inheritance() Pases_on_correct_inheritance()

public virtual void Pases_on_correct_inheritance()
Public Overridable Sub Pases_on_correct_inheritance

Pases_on_diamond_path_to_root_principal_property() Pases_on_diamond_path_to_root_principal_property()

public virtual void Pases_on_diamond_path_to_root_principal_property()
Public Overridable Sub Pases_on_diamond_path_to_root_principal_property

Pases_on_double_reference_to_root_principal_property() Pases_on_double_reference_to_root_principal_property()

public virtual void Pases_on_double_reference_to_root_principal_property()
Public Overridable Sub Pases_on_double_reference_to_root_principal_property

Passes_for_changed_only_entities_with_snapshot_or_changed_only_tracking(ChangeTrackingStrategy) Passes_for_changed_only_entities_with_snapshot_or_changed_only_tracking(ChangeTrackingStrategy)

public virtual void Passes_for_changed_only_entities_with_snapshot_or_changed_only_tracking(ChangeTrackingStrategy changeTrackingStrategy)
Public Overridable Sub Passes_for_changed_only_entities_with_snapshot_or_changed_only_tracking(changeTrackingStrategy As ChangeTrackingStrategy)
Parameters

Passes_for_fully_notifying_entities(ChangeTrackingStrategy) Passes_for_fully_notifying_entities(ChangeTrackingStrategy)

public virtual void Passes_for_fully_notifying_entities(ChangeTrackingStrategy changeTrackingStrategy)
Public Overridable Sub Passes_for_fully_notifying_entities(changeTrackingStrategy As ChangeTrackingStrategy)
Parameters

Passes_for_non_notifying_entities_with_snapshot_tracking() Passes_for_non_notifying_entities_with_snapshot_tracking()

public virtual void Passes_for_non_notifying_entities_with_snapshot_tracking()
Public Overridable Sub Passes_for_non_notifying_entities_with_snapshot_tracking

Passes_on_escapable_foreign_key_cycles() Passes_on_escapable_foreign_key_cycles()

public virtual void Passes_on_escapable_foreign_key_cycles()
Public Overridable Sub Passes_on_escapable_foreign_key_cycles

Passes_on_escapable_foreign_key_cycles_not_starting_at_hub() Passes_on_escapable_foreign_key_cycles_not_starting_at_hub()

public virtual void Passes_on_escapable_foreign_key_cycles_not_starting_at_hub()
Public Overridable Sub Passes_on_escapable_foreign_key_cycles_not_starting_at_hub

Passes_on_foreign_key_cycle_with_one_GenerateOnAdd() Passes_on_foreign_key_cycle_with_one_GenerateOnAdd()

public virtual void Passes_on_foreign_key_cycle_with_one_GenerateOnAdd()
Public Overridable Sub Passes_on_foreign_key_cycle_with_one_GenerateOnAdd

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

SetBaseType(EntityType, EntityType) SetBaseType(EntityType, EntityType)

protected virtual void SetBaseType(EntityType entityType, EntityType baseEntityType)
Protected Overridable Sub SetBaseType(entityType As EntityType, baseEntityType As EntityType)
Parameters
entityType
EntityType EntityType
baseEntityType
EntityType EntityType

SetPrimaryKey(EntityType) SetPrimaryKey(EntityType)

public void SetPrimaryKey(EntityType entityType)
Public Sub SetPrimaryKey(entityType As EntityType)
Parameters
entityType
EntityType EntityType

ToString() ToString()

Inherited from System.Object

Validate(IModel) Validate(IModel)

protected virtual void Validate(IModel model)
Protected Overridable Sub Validate(model As IModel)
Parameters
model
IModel IModel

VerifyError(String, IModel) VerifyError(String, IModel)

protected abstract void VerifyError(string expectedMessage, IModel model)
Protected MustOverride Sub VerifyError(expectedMessage As String, model As IModel)
Parameters
expectedMessage
System.String System.String
model
IModel IModel

VerifyWarning(String, IModel) VerifyWarning(String, IModel)

protected abstract void VerifyWarning(string expectedMessage, IModel model)
Protected MustOverride Sub VerifyWarning(expectedMessage As String, model As IModel)
Parameters
expectedMessage
System.String System.String
model
IModel IModel