Table of Contents

Class ServiceConfigServiceTest

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

Methods

Get_Find_Id_Return_ServiceConfig()

Verifies that the ServiceConfig service returns a ServiceConfig instance when retrieving an existing configuration by its string identifier.

[Test]
public Task Get_Find_Id_Return_ServiceConfig()

Returns

Task

Get_Not_Find_Id_Return_ServiceConfig()

Verifies that the Get method returns a ServiceConfig when the specified id is not found by the repository's FindById, falling back to a lookup with any MongoDB.Bson.ObjectId.

[Test]
public Task Get_Not_Find_Id_Return_ServiceConfig()

Returns

Task

Setup()

Initializes the test environment by creating mock instances of the service configuration repository and logger, and instantiating the ServiceConfigService under test.

[SetUp]
public void Setup()