Use interfacesfor testability
- Last UpdatedApr 08, 2026
- 1 minute read
AVEVA strongly recommends using the High Performance Database (HPDB) interfaces instead of the concrete classes. Interfaces allow classes to have injectable dependencies that can support mockable and unit-testable code. Interfaces should be used as parameters in the constructor and methods, as well as in the return value.
These interfaces and their implementations are defined within the OASySDNA.RealTime.Data.Common library. The implementations wrap the classes within the OASySDNA.RealTime.HighPerformanceDB and the OASySDNA.RealTime.HighPerformanceSetDB libraries.