C# Class Mongo.Context.Tests.TestData

Show file Open project: object/MongOData Class Usage Examples

Public Methods

Method Description
Clean ( ) : void
CreateDatabase ( ) : MongoDatabase
OpenDatabase ( ) : MongoDatabase
PopulateWithBsonIdTypes ( bool clearDatabase = true ) : void
PopulateWithCategoriesAndProducts ( bool clearDatabase = true ) : void
PopulateWithClrTypes ( bool clearDatabase = true ) : void
PopulateWithJsonSamples ( bool clearDatabase = true ) : void
PopulateWithVariableTypes ( bool clearDatabase = true ) : void

Private Methods

Method Description
GetDatabase ( bool clear ) : MongoDatabase
GetDatabaseName ( string connectionString ) : string
GetResourceAsString ( string resourceName ) : string

Method Details

Clean() public static method

public static Clean ( ) : void
return void

CreateDatabase() public static method

public static CreateDatabase ( ) : MongoDatabase
return MongoDatabase

OpenDatabase() public static method

public static OpenDatabase ( ) : MongoDatabase
return MongoDatabase

PopulateWithBsonIdTypes() public static method

public static PopulateWithBsonIdTypes ( bool clearDatabase = true ) : void
clearDatabase bool
return void

PopulateWithCategoriesAndProducts() public static method

public static PopulateWithCategoriesAndProducts ( bool clearDatabase = true ) : void
clearDatabase bool
return void

PopulateWithClrTypes() public static method

public static PopulateWithClrTypes ( bool clearDatabase = true ) : void
clearDatabase bool
return void

PopulateWithJsonSamples() public static method

public static PopulateWithJsonSamples ( bool clearDatabase = true ) : void
clearDatabase bool
return void

PopulateWithVariableTypes() public static method

public static PopulateWithVariableTypes ( bool clearDatabase = true ) : void
clearDatabase bool
return void