Class IEngineExtensions
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Automation
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Automation.dll
Defines extension methods on the IEngine interface.
public static class IEngineExtensions
- Inheritance
-
IEngineExtensions
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(IEngine)
Retrieves an object implementing the IDms interface that executes actions with administrator permissions. Prefer using GetDmsAsUser(IEngine) so that actions are executed in the context of the user running the Automation script.
- GetDmsAsUser(IEngine)
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(IEngine).