Class RecordingAlertArchiveRepositoryTest
- Namespace
- adas_core.Test.Repositories
- Assembly
- adas-core.Test.dll
[TestFixture]
[Category("Integration")]
public class RecordingAlertArchiveRepositoryTest
- Inheritance
-
RecordingAlertArchiveRepositoryTest
- Inherited Members
- Extension Methods
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
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()