Method Create
- Namespace
- Skyline.DataMiner.Utils.DOM.UnitTesting
- Assembly
- Skyline.DataMiner.Utils.DOM.dll
Create()
Creates a new instance of DomHelperMock.
public static DomHelperMock Create()
Returns
- DomHelperMock
A new instance of DomHelperMock.
Create(string)
Creates a new instance of DomHelperMock.
public static DomHelperMock Create(string moduleId)
Parameters
moduleIdstringID of the DOM module.
Returns
- DomHelperMock
A new instance of DomHelperMock.
Create(string, bool)
Creates a new instance of DomHelperMock.
public static DomHelperMock Create(string moduleId, bool validateAgainstDefinition)
Parameters
moduleIdstringID of the DOM module.
validateAgainstDefinitionboolIf set to
true, validates DOM instances against their definitions, section definitions, and required fields when performing CRUD operations.
Returns
- DomHelperMock
A new instance of DomHelperMock.
Create(IEnumerable<DomInstance>)
Creates a new instance of DomHelperMock with pre-defined instances.
public static DomHelperMock Create(IEnumerable<DomInstance> instances)
Parameters
instancesIEnumerable<DomInstance>The pre-defined collection of DOM instances.
Returns
- DomHelperMock
A new instance of DomHelperMock with pre-defined instances.
Create(string, IEnumerable<DomInstance>)
Creates a new instance of DomHelperMock with pre-defined instances.
public static DomHelperMock Create(string moduleId, IEnumerable<DomInstance> instances)
Parameters
moduleIdstringThe ID of the DOM module.
instancesIEnumerable<DomInstance>The pre-defined collection of DOM instances.
Returns
- DomHelperMock
A new instance of DomHelperMock with pre-defined instances.