# Class IntegrationDb

Namespace
  adas_core.Test.Repositories

Assembly
  adas-core.Test.dll

    [SetUpFixture]
    [Category("Integration")]
    public class IntegrationDb

Inheritance
  object
  IntegrationDb

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## 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()