MockIDynamicAlgorithmProvider Class
Last update: 19.06.2026Namespace: Phoenix.Optimization.AlgorithmTests.MockObjects
Overview
A mock implementation of [IDynamicAlgorithmProvider] for use in automated tests.
Inheritance

Declaration
class MockIDynamicAlgorithmProvider
Description
A mock implementation of [IDynamicAlgorithmProvider] for use in automated tests.
Public Member Functions
| Type | Name | Description |
|---|---|---|
IDictionary< string, [IAlgorithmCatalogEntry]() > |
LoadAlgorithms () |
Generate IAlgorithmCatalogEntry instances for all the algorithms this provider knows how to load.The keys in the dictionary should be some unique identifier for the algorithm. Note that this dictionary will be combined with dictionaries from other [IDynamicAlgorithmProvider]() implementations, so there should be a reasonable degree of certainty that the identifier is globally unique. Additionally, the identifiers should be stable between runs, so that the Optimization Tool can reload its state from a saved file. |
MockIDynamicAlgorithmProvider () |
Constructor. |
Constructor & Destructor Documentation
MockIDynamicAlgorithmProvider()
MockIDynamicAlgorithmProvider ( )
Constructor.
Member Function Documentation
LoadAlgorithms
IDictionary< string, [IAlgorithmCatalogEntry]() > LoadAlgorithms ( )
Generate [IAlgorithmCatalogEntry]() instances for all the algorithms this provider knows how to load.The keys in the dictionary should be some unique identifier for the algorithm. Note that this dictionary will be combined with dictionaries from other [IDynamicAlgorithmProvider]() implementations, so there should be a reasonable degree of certainty that the identifier is globally unique. Additionally, the identifiers should be stable between runs, so that the Optimization Tool can reload its state from a saved file.
Implements IDynamicAlgorithmProvider.
Property Documentation
MockIDynamicAlgorithmProvider()
MockIDynamicAlgorithmProvider ( )
Constructor.
LoadAlgorithms()
IDictionary< string, [IAlgorithmCatalogEntry]() > LoadAlgorithms ( )
Generate IAlgorithmCatalogEntry instances for all the algorithms this provider knows how to load.The keys in the dictionary should be some unique identifier for the algorithm. Note that this dictionary will be combined with dictionaries from other [IDynamicAlgorithmProvider]() implementations, so there should be a reasonable degree of certainty that the identifier is globally unique. Additionally, the identifiers should be stable between runs, so that the Optimization Tool can reload its state from a saved file.
Implements IDynamicAlgorithmProvider.