# Class PatientArchiveRepositoryTest

Namespace
  adas_core.Test.Repositories

Assembly
  adas-core.Test.dll

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

Inheritance
  object
  PatientArchiveRepositoryTest

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

### FindAll_Return_List_Patients()

Verifies that the repository's `FindAll` method returns a non-null list containing the expected number of patient records.

    [Test]
    public Task FindAll_Return_List_Patients()

#### Returns

Task

### FindByPatientNumber_Find_Return_Patient()

Verifies that the repository's FindByPatientNumber method successfully retrieves a patient matching the provided patient number, ensuring the returned patient is not null and has the expected PatientNumber.

    [Test]
    public Task FindByPatientNumber_Find_Return_Patient()

#### Returns

Task

### FindByPatientNumber_Not_Find_Return_null()

Verifies that the FindByPatientNumber repository method returns null when no record is found for the provided patient number.

    [Test]
    public Task FindByPatientNumber_Not_Find_Return_null()

#### Returns

Task

### Init()

Performs one-time setup for integration tests by seeding the patient archive collection with three predefined Patient records after resetting the collection.

    [OneTimeSetUp]
    public Task Init()

#### Returns

Task