C# Class Raven.Tests.Helpers.RavenTestBase

Inheritance: IDisposable
Datei anzeigen Open project: robashton/ravendb Class Usage Examples

Protected Properties

Property Type Description
servers List
stores List

Public Methods

Method Description
Dispose ( ) : void
EnableAuthentication ( DocumentDatabase database ) : void
GetDefaultStorageType ( string requestedStorage = null ) : string
GetLicenseByReflection ( DocumentDatabase database ) : Raven.Abstractions.Data.LicensingStatus
NewDocumentStore ( bool runInMemory = true, string requestedStorage = null, System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog = null, string dataDir = null, bool enableAuthentication = false ) : EmbeddableDocumentStore
NewRemoteDocumentStore ( bool fiddler = false, RavenDbServer ravenDbServer = null, string databaseName = null, bool runInMemory = true, string dataDirectory = null, string requestedStorage = null, bool enableAuthentication = false ) : IDocumentStore
NewTransactionalStorage ( string requestedStorage = null, string dataDir = null ) : ITransactionalStorage
RavenTestBase ( ) : System
WaitForAllRequestsToComplete ( RavenDbServer server ) : void
WaitForIndexing ( DocumentDatabase db ) : void
WaitForIndexing ( IDocumentStore store, string db = null ) : void
WaitForUserToContinueTheTest ( EmbeddableDocumentStore documentStore, bool debug = true ) : void

Protected Methods

Method Description
AssertNoIndexErrors ( IDocumentStore documentStore ) : void
ClearDatabaseDirectory ( string dataDir ) : void
CreateDefaultIndexes ( IDocumentStore documentStore ) : void
GetNewServer ( int port = 8079, string dataDirectory = null, bool runInMemory = true, string requestedStorage = null, bool enableAuthentication = false ) : RavenDbServer
ModifyConfiguration ( InMemoryRavenConfiguration configuration ) : void
ModifyServer ( RavenDbServer ravenDbServer ) : void
ModifyStore ( DocumentStore documentStore ) : void
ModifyStore ( EmbeddableDocumentStore documentStore ) : void
NewDataPath ( string prefix = null ) : string
PrintServerErrors ( Raven.Abstractions.Data.ServerError serverErrors ) : void
WaitForBackup ( DocumentDatabase db, bool checkError ) : void
WaitForBackup ( IDatabaseCommands commands, bool checkError ) : void
WaitForDocument ( IDatabaseCommands databaseCommands, string id ) : void
WaitForRestore ( IDatabaseCommands databaseCommands ) : void
WaitForUserToContinueTheTest ( bool debug = true ) : void

Private Methods

Method Description
GetServerUrl ( bool fiddler ) : string
WaitForBackup ( JsonDocument>.Func getDocument, bool checkError ) : void

Method Details

AssertNoIndexErrors() protected method

protected AssertNoIndexErrors ( IDocumentStore documentStore ) : void
documentStore IDocumentStore
return void

ClearDatabaseDirectory() protected method

protected ClearDatabaseDirectory ( string dataDir ) : void
dataDir string
return void

CreateDefaultIndexes() protected method

protected CreateDefaultIndexes ( IDocumentStore documentStore ) : void
documentStore IDocumentStore
return void

Dispose() public method

public Dispose ( ) : void
return void

EnableAuthentication() public static method

public static EnableAuthentication ( DocumentDatabase database ) : void
database Raven.Database.DocumentDatabase
return void

GetDefaultStorageType() public static method

public static GetDefaultStorageType ( string requestedStorage = null ) : string
requestedStorage string
return string

GetLicenseByReflection() public static method

public static GetLicenseByReflection ( DocumentDatabase database ) : Raven.Abstractions.Data.LicensingStatus
database Raven.Database.DocumentDatabase
return Raven.Abstractions.Data.LicensingStatus

GetNewServer() protected method

protected GetNewServer ( int port = 8079, string dataDirectory = null, bool runInMemory = true, string requestedStorage = null, bool enableAuthentication = false ) : RavenDbServer
port int
dataDirectory string
runInMemory bool
requestedStorage string
enableAuthentication bool
return Raven.Server.RavenDbServer

ModifyConfiguration() protected method

protected ModifyConfiguration ( InMemoryRavenConfiguration configuration ) : void
configuration InMemoryRavenConfiguration
return void

ModifyServer() protected method

protected ModifyServer ( RavenDbServer ravenDbServer ) : void
ravenDbServer Raven.Server.RavenDbServer
return void

ModifyStore() protected method

protected ModifyStore ( DocumentStore documentStore ) : void
documentStore Raven.Client.Document.DocumentStore
return void

ModifyStore() protected method

protected ModifyStore ( EmbeddableDocumentStore documentStore ) : void
documentStore Raven.Client.Embedded.EmbeddableDocumentStore
return void

NewDataPath() protected method

protected NewDataPath ( string prefix = null ) : string
prefix string
return string

NewDocumentStore() public method

public NewDocumentStore ( bool runInMemory = true, string requestedStorage = null, System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog = null, string dataDir = null, bool enableAuthentication = false ) : EmbeddableDocumentStore
runInMemory bool
requestedStorage string
catalog System.ComponentModel.Composition.Primitives.ComposablePartCatalog
dataDir string
enableAuthentication bool
return Raven.Client.Embedded.EmbeddableDocumentStore

NewRemoteDocumentStore() public method

public NewRemoteDocumentStore ( bool fiddler = false, RavenDbServer ravenDbServer = null, string databaseName = null, bool runInMemory = true, string dataDirectory = null, string requestedStorage = null, bool enableAuthentication = false ) : IDocumentStore
fiddler bool
ravenDbServer Raven.Server.RavenDbServer
databaseName string
runInMemory bool
dataDirectory string
requestedStorage string
enableAuthentication bool
return IDocumentStore

NewTransactionalStorage() public method

public NewTransactionalStorage ( string requestedStorage = null, string dataDir = null ) : ITransactionalStorage
requestedStorage string
dataDir string
return ITransactionalStorage

PrintServerErrors() protected static method

protected static PrintServerErrors ( Raven.Abstractions.Data.ServerError serverErrors ) : void
serverErrors Raven.Abstractions.Data.ServerError
return void

RavenTestBase() public method

public RavenTestBase ( ) : System
return System

WaitForAllRequestsToComplete() public static method

public static WaitForAllRequestsToComplete ( RavenDbServer server ) : void
server Raven.Server.RavenDbServer
return void

WaitForBackup() protected method

protected WaitForBackup ( DocumentDatabase db, bool checkError ) : void
db Raven.Database.DocumentDatabase
checkError bool
return void

WaitForBackup() protected method

protected WaitForBackup ( IDatabaseCommands commands, bool checkError ) : void
commands IDatabaseCommands
checkError bool
return void

WaitForDocument() protected method

protected WaitForDocument ( IDatabaseCommands databaseCommands, string id ) : void
databaseCommands IDatabaseCommands
id string
return void

WaitForIndexing() public static method

public static WaitForIndexing ( DocumentDatabase db ) : void
db Raven.Database.DocumentDatabase
return void

WaitForIndexing() public static method

public static WaitForIndexing ( IDocumentStore store, string db = null ) : void
store IDocumentStore
db string
return void

WaitForRestore() protected method

protected WaitForRestore ( IDatabaseCommands databaseCommands ) : void
databaseCommands IDatabaseCommands
return void

WaitForUserToContinueTheTest() public static method

public static WaitForUserToContinueTheTest ( EmbeddableDocumentStore documentStore, bool debug = true ) : void
documentStore Raven.Client.Embedded.EmbeddableDocumentStore
debug bool
return void

WaitForUserToContinueTheTest() protected method

protected WaitForUserToContinueTheTest ( bool debug = true ) : void
debug bool
return void

Property Details

servers protected_oe property

protected List servers
return List

stores protected_oe property

protected List stores
return List