# Class TreatmentArchiveRepositoryTest

Namespace
  adas_core.Test.Repositories

Assembly
  adas-core.Test.dll

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

Inheritance
  object
  TreatmentArchiveRepositoryTest

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

Tests the DeleteBeforeDate() repository method to ensure it correctly removes records older than the specified cutoff date, leaving only the most recent record. Verifies that when multiple patient records exist, deletion by date retains exactly one record.

    [Test]
    public Task DeleteBeforeDate()

#### Returns

Task

### FindAllFromPatient()

Verifies that the repository successfully retrieves a non-empty collection of records associated with the specified patient.

    [Test]
    public Task FindAllFromPatient()

#### Returns

Task

### Init()

One-time setup method that prepares the integration test environment for the treatment archive repository by creating and inserting two sample patient treatments (one new and one discontinued) into a freshly created archive collection.

    [OneTimeSetUp]
    public Task Init()

#### Returns

Task