Class ConfigPumpsRepositoryTest
- Namespace
- adas_core.Test.Repositories
- Assembly
- adas-core.Test.dll
[TestFixture]
[Category("Integration")]
public class ConfigPumpsRepositoryTest
- Inheritance
-
ConfigPumpsRepositoryTest
- Inherited Members
- Extension Methods
Methods
FindAsync_not_Find_id_Return_Empty_List()
Verifies that the repository's FindById method returns null when no entity is found for the specified identifier.
[Test]
public Task FindAsync_not_Find_id_Return_Empty_List()
Returns
FindById_Find_id_Return_List()
Verifies that FindById(string) returns a non-null result when searching by the identifier "PV1".
[Test]
public Task FindById_Find_id_Return_List()
Returns
Init()
Initializes the integration test environment by recreating the config_pumps collection and inserting a single configuration pump containing two empty items for use by subsequent tests.
[OneTimeSetUp]
public Task Init()
Returns
Insert_PumpConfig_returns2()
Tests that inserting a new pump configuration with two items increases the total configuration count to two, that the inserted configuration can be retrieved by its identifier, and that the inserted configuration can be successfully deleted.
[Test]
public Task Insert_PumpConfig_returns2()