# Class RecordingAlertArchiveRepositoryTest

Namespace
  adas_core.Test.Repositories

Assembly
  adas-core.Test.dll

    [TestFixture]
    [Category("Integration")]
    public class RecordingAlertArchiveRepositoryTest

Inheritance
  object
  RecordingAlertArchiveRepositoryTest

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?)

## Methods

### DeleteBeforeDate()

Verifies that the repository's `DeleteBeforeDate` operation removes all documents dated before the specified cutoff date, leaving only documents on or after that date. Expects more than one document in the collection initially and exactly one remaining after deletion.

    [Test]
    public Task DeleteBeforeDate()

#### Returns

Task

### Init()

One-time test setup that prepares the archive collection for recording-alert integration tests by clearing it, creating a fresh instance of RecordingAlertArchiveRepository, and seeding it with two patient recording alerts (one matching the current patient with the current timestamp and one for a different patient dated ten days earlier), verifying that both records are persisted.

    [OneTimeSetUp]
    public Task Init()

#### Returns

Task