Table of Contents

Class PoCSettingsRepositoryTest

Namespace
adas_core.Test.Repositories
Assembly
adas-core.Test.dll
[TestFixture]
public class PoCSettingsRepositoryTest
Inheritance
PoCSettingsRepositoryTest
Inherited Members
Extension Methods

Methods

Delete_WhenCalled_ShouldRemovePoCSettings()

Verifies that calling the Delete method with an existing PoCSettings identifier removes the corresponding record from the repository, resulting in a null lookup via FindById.

[Test]
public Task Delete_WhenCalled_ShouldRemovePoCSettings()

Returns

Task

FindAll_WhenCalled_ShouldReturnAllPoCSettings()

Verifies that the repository's FindAll method returns a non-null and non-empty collection of PoC settings.

[Test]
public Task FindAll_WhenCalled_ShouldReturnAllPoCSettings()

Returns

Task

FindById_WhenCalled_ShouldReturnPoCSettings()

Tests that FindById returns a non-null PoC settings object whose identifier matches the requested value.

[Test]
public Task FindById_WhenCalled_ShouldReturnPoCSettings()

Returns

Task

FindByLocation_WhenCalled_ShouldReturnPoCSettings()

Verifies that _repository.FindByLocation returns a PoC settings object matching the requested patient location.

[Test]
public Task FindByLocation_WhenCalled_ShouldReturnPoCSettings()

Returns

Task

Init()

One-time setup that prepares the integration test environment by resetting the PoC settings collection in the integration database, seeding it with test data, and instantiating the PoCSettingsRepository used by the test fixture.

[OneTimeSetUp]
public Task Init()

Returns

Task

Update_WhenCalled_ShouldUpdatePoCSettings()

Verifies that the repository correctly updates an existing PoCSettings entity, specifically ensuring that the associated PatientLocation properties (such as Bed) are persisted after the update operation.

[Test]
public Task Update_WhenCalled_ShouldUpdatePoCSettings()

Returns

Task

A task that represents the asynchronous test execution.