Table of Contents

Class IntegrationDb

Namespace
adas_core.Test.Repositories
Assembly
adas-core.Test.dll
[SetUpFixture]
[Category("Integration")]
public class IntegrationDb
Inheritance
IntegrationDb
Inherited Members
Extension Methods

Properties

Database

public static IMongoDatabase Database { get; }

Property Value

IMongoDatabase

DatabaseName

public static string DatabaseName { get; }

Property Value

string

Runner

public static MongoDbRunner? Runner { get; }

Property Value

MongoDbRunner

Methods

InitIntegrationTests()

Initializes the MongoDB integration test environment by starting a MongoDB runner, configuring MongoDB conventions and BSON class mappings, establishing a client from the runner's connection string, and obtaining the target database used by integration tests.

[OneTimeSetUp]
public void InitIntegrationTests()

TeardownIntegrationTests()

Performs one-time teardown for integration tests by disposing the adas_core.Test.Repositories.IntegrationDb.Client and Runner resources. Safely handles cases where either resource has not been initialized by using null-conditional disposal.

[OneTimeTearDown]
public void TeardownIntegrationTests()