Class EngineExtensions
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Automation
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Automation.dll
Defines extension methods on the Engine class.
public static class EngineExtensions
- Inheritance
-
EngineExtensions
Fields
- OverrideGetDms
Allows an override of the behavior of GetDms to return a Fake or Mock of IDms. Important: When this is used, unit tests should never be run in parallel.
- OverrideGetDmsAsUser
Allows an override of the behavior of GetDmsAsUser to return a Fake or Mock of IDms. Important: When this is used, unit tests should never be run in parallel.
Methods
- GetDms(Engine)
Retrieves an object implementing the IDms interface that executes actions with administrator permissions. Prefer using GetDmsAsUser(Engine) so that actions are executed in the context of the user running the Automation script.
- GetDmsAsUser(Engine)
Retrieves an object implementing the IDms interface that executes actions in the context of the user running the Automation script. This is the recommended method over GetDms(Engine).