C# Class Galen.Ci.EntityFramework.Tests.TestUtils

Afficher le fichier Open project: GalenHealthcare/Galen.Ef.Deployer

Méthodes publiques

Méthode Description
BuildTestAssemblyPath ( int version ) : string
BuildTestContextTestAssemblyPath ( int version ) : string
CreateDatabase ( string serverName, string databaseName ) : void
DropDatabase ( string serverName, string databaseName ) : void
ExecuteSqlCommand ( string serverName, string databaseName, string sql ) : void
GetDeploymentHistoryRowCount ( string serverName, string databaseName, string contextKey ) : int
GetMigrationHistory ( string serverName, string databaseName, string contextKey ) : IEnumerable
GetRows ( string serverName, string databaseName, string tableName ) : IEnumerable
InitializeDatabase ( System.Reflection.AssemblyLoader assemblyLoader, string contextAssemblyPath, string contextName, string serverName, string databaseName ) : void

Private Methods

Méthode Description
AssemblyInit ( Microsoft.VisualStudio.TestTools.UnitTesting.TestContext context ) : void

Method Details

BuildTestAssemblyPath() public static méthode

public static BuildTestAssemblyPath ( int version ) : string
version int
Résultat string

BuildTestContextTestAssemblyPath() public static méthode

public static BuildTestContextTestAssemblyPath ( int version ) : string
version int
Résultat string

CreateDatabase() public static méthode

public static CreateDatabase ( string serverName, string databaseName ) : void
serverName string
databaseName string
Résultat void

DropDatabase() public static méthode

public static DropDatabase ( string serverName, string databaseName ) : void
serverName string
databaseName string
Résultat void

ExecuteSqlCommand() public static méthode

public static ExecuteSqlCommand ( string serverName, string databaseName, string sql ) : void
serverName string
databaseName string
sql string
Résultat void

GetDeploymentHistoryRowCount() public static méthode

public static GetDeploymentHistoryRowCount ( string serverName, string databaseName, string contextKey ) : int
serverName string
databaseName string
contextKey string
Résultat int

GetMigrationHistory() public static méthode

public static GetMigrationHistory ( string serverName, string databaseName, string contextKey ) : IEnumerable
serverName string
databaseName string
contextKey string
Résultat IEnumerable

GetRows() public static méthode

public static GetRows ( string serverName, string databaseName, string tableName ) : IEnumerable
serverName string
databaseName string
tableName string
Résultat IEnumerable

InitializeDatabase() public static méthode

public static InitializeDatabase ( System.Reflection.AssemblyLoader assemblyLoader, string contextAssemblyPath, string contextName, string serverName, string databaseName ) : void
assemblyLoader System.Reflection.AssemblyLoader
contextAssemblyPath string
contextName string
serverName string
databaseName string
Résultat void