Table of Contents

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

moduleId string

ID 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

moduleId string

ID of the DOM module.

validateAgainstDefinition bool

If 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

instances IEnumerable<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

moduleId string

The ID of the DOM module.

instances IEnumerable<DomInstance>

The pre-defined collection of DOM instances.

Returns

DomHelperMock

A new instance of DomHelperMock with pre-defined instances.