Table of Contents

Class TreatmentArchiveRepositoryTest

Namespace
adas_core.Test.Repositories
Assembly
adas-core.Test.dll
[TestFixture]
[Category("Integration")]
public class TreatmentArchiveRepositoryTest
Inheritance
TreatmentArchiveRepositoryTest
Inherited Members
Extension Methods

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