C# Class NSoft.NFramework.Data.NHibernateEx.NHRepositoryTestFixtureBase

NSoft.NFramework.Data.NHibernateEx 와 관련된 클래스틑 테스트하기 위한 기본 클래스입니다. DB는 기본적으로 SQLite를 사용합니다. 변경하고자할 때는 GetDatabaseEngine 을 재정의하세요.
Inheritance: NHDatabaseTestFixtureBase
Show file Open project: debop/NFramework

Protected Properties

Property Type Description
parentsInDB List

Public Methods

Method Description
GetCodes ( string prefix, int count ) : IList

Protected Methods

Method Description
AssertDTOCreatedFrom ( Parent parent, ParentDTO dto ) : void
AssertDTOsCreatedFrom ( IList parents, ICollection dtos ) : void
AssertDtosSortedByName ( ICollection dtos, string sortOrder ) : void
BuildUserEntities ( ) : void
ClearUserEntities ( ) : void
CreateObjectsInDB ( ) : void
CreateParentObject ( string name, int age ) : Parent
CreateParentObjectInDB ( string name, int age ) : Parent
GetMappingInfo ( ) : MappingInfo
OnSetUp ( ) : void
OnTearDown ( ) : void
OnTestFixtureSetUp ( ) : void
OnTestFixtureTearDown ( ) : void
WhereNameEquals ( string nameToMatch ) : DetachedCriteria
WhereNameIn ( ) : DetachedCriteria

Private Methods

Method Description
AssumeParentObjectNamesAreUnique ( IEnumerable parents ) : void

Method Details

AssertDTOCreatedFrom() protected static method

protected static AssertDTOCreatedFrom ( Parent parent, ParentDTO dto ) : void
parent Parent
dto NSoft.NFramework.Data.NHibernateEx.Domain.ParentDTO
return void

AssertDTOsCreatedFrom() protected static method

protected static AssertDTOsCreatedFrom ( IList parents, ICollection dtos ) : void
parents IList
dtos ICollection
return void

AssertDtosSortedByName() protected static method

protected static AssertDtosSortedByName ( ICollection dtos, string sortOrder ) : void
dtos ICollection
sortOrder string
return void

BuildUserEntities() protected static method

protected static BuildUserEntities ( ) : void
return void

ClearUserEntities() protected static method

protected static ClearUserEntities ( ) : void
return void

CreateObjectsInDB() protected method

protected CreateObjectsInDB ( ) : void
return void

CreateParentObject() protected static method

protected static CreateParentObject ( string name, int age ) : Parent
name string
age int
return Parent

CreateParentObjectInDB() protected static method

protected static CreateParentObjectInDB ( string name, int age ) : Parent
name string
age int
return Parent

GetCodes() public static method

public static GetCodes ( string prefix, int count ) : IList
prefix string
count int
return IList

GetMappingInfo() protected method

protected GetMappingInfo ( ) : MappingInfo
return MappingInfo

OnSetUp() protected method

protected OnSetUp ( ) : void
return void

OnTearDown() protected method

protected OnTearDown ( ) : void
return void

OnTestFixtureSetUp() protected method

protected OnTestFixtureSetUp ( ) : void
return void

OnTestFixtureTearDown() protected method

protected OnTestFixtureTearDown ( ) : void
return void

WhereNameEquals() protected static method

protected static WhereNameEquals ( string nameToMatch ) : DetachedCriteria
nameToMatch string
return DetachedCriteria

WhereNameIn() protected static method

protected static WhereNameIn ( ) : DetachedCriteria
return DetachedCriteria

Property Details

parentsInDB protected property

protected List parentsInDB
return List