|
PACS System 0.1.0
PACS DICOM system library
|
#include <test_support.h>

Public Member Functions | |
| TestContainerBuilder ()=default | |
| TestContainerBuilder & | with_storage (std::shared_ptr< MockStorage > storage) |
| Use a specific mock storage instance. | |
| TestContainerBuilder & | with_mock_storage () |
| Create and use a new mock storage. | |
| TestContainerBuilder & | with_network (std::shared_ptr< MockNetwork > network) |
| Use a specific mock network instance. | |
| TestContainerBuilder & | with_mock_network () |
| Create and use a new mock network. | |
| std::shared_ptr< kcenon::common::di::service_container > | build () |
| Build the configured container. | |
| std::shared_ptr< MockStorage > | storage () const |
| Get the mock storage instance (for test assertions) | |
| std::shared_ptr< MockNetwork > | network () const |
| Get the mock network instance (for test assertions) | |
Private Attributes | |
| std::shared_ptr< MockStorage > | mock_storage_ |
| std::shared_ptr< MockNetwork > | mock_network_ |
Definition at line 281 of file test_support.h.
|
default |
|
inlinenodiscard |
Build the configured container.
Definition at line 322 of file test_support.h.
References mock_network_, and mock_storage_.
Referenced by kcenon::pacs::di::test::create_test_container().

|
inlinenodiscard |
Get the mock network instance (for test assertions)
Definition at line 346 of file test_support.h.
References mock_network_.
Referenced by with_network().

|
inlinenodiscard |
Get the mock storage instance (for test assertions)
Definition at line 339 of file test_support.h.
References mock_storage_.
Referenced by with_storage().

|
inline |
Create and use a new mock network.
Definition at line 312 of file test_support.h.
References mock_network_.
Referenced by kcenon::pacs::di::test::create_test_container().

|
inline |
Create and use a new mock storage.
Definition at line 296 of file test_support.h.
References mock_storage_.
Referenced by kcenon::pacs::di::test::create_test_container().

|
inline |
Use a specific mock network instance.
Definition at line 304 of file test_support.h.
References mock_network_, and network().

|
inline |
Use a specific mock storage instance.
Definition at line 288 of file test_support.h.
References mock_storage_, and storage().

|
private |
Definition at line 352 of file test_support.h.
Referenced by build(), network(), with_mock_network(), and with_network().
|
private |
Definition at line 351 of file test_support.h.
Referenced by build(), storage(), with_mock_storage(), and with_storage().