# Class AppointmentArchiveRepositoryTest

Namespace
  adas_core.Test.Repositories

Assembly
  adas-core.Test.dll

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

Inheritance
  object
  AppointmentArchiveRepositoryTest

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` method correctly removes all records with a timestamp earlier than the specified cutoff date (two hours before the current time), while retaining records dated at or after the cutoff for the given patient.

    [Test]
    public Task DeleteBeforeDate()

#### Returns

Task

### Init()

One-time test setup that initializes the appointments archive collection with two seed PatientAppointment records — a minimal appointment and a fully populated one with visit number, reason, and resource group location — for use by integration tests against AppointmentArchiveRepository.

    [OneTimeSetUp]
    public Task Init()

#### Returns

Task

  A Task that completes when the collection has been recreated and both seed appointments have been inserted.