TestimoX

API Reference

Class

IdentityExposureChartSampleBuilder

Namespace ADPlayground.IdentityExposure
Assembly ADPlayground
Modifiers static

Builds deterministic identity exposure samples for renderer fixtures and documentation.

Inheritance

  • Object
  • IdentityExposureChartSampleBuilder

Methods

public static IdentityExposureChartModel CreateChartModel(String domainName = "contoso.com", String title = "Tier 0 Exposure Sample") #
Returns: IdentityExposureChartModel

Creates a deterministic ChartForgeX-ready identity exposure chart model.

Parameters

domainName System.String = "contoso.com" optionalposition: 0
Sample DNS domain name.
title System.String = "Tier 0 Exposure Sample" optionalposition: 1
Optional chart title.

Returns

Sample chart model.

public static IdentityExposureSnapshot CreateSnapshot(String domainName = "contoso.com", Int32 maxPaths = 12, Int32 maxAlternatePaths = 8) #
Returns: IdentityExposureSnapshot

Creates a deterministic Active Directory identity exposure snapshot.

Parameters

domainName System.String = "contoso.com" optionalposition: 0
Sample DNS domain name.
maxPaths System.Int32 = 12 optionalposition: 1
Maximum cheapest paths to include.
maxAlternatePaths System.Int32 = 8 optionalposition: 2
Maximum alternate paths to include.

Returns

Sample identity exposure snapshot.

public static String ToJson(String domainName = "contoso.com", String title = "Tier 0 Exposure Sample", Boolean indented = true) #
Returns: String

Serializes the deterministic ChartForgeX sample to JSON.

Parameters

domainName System.String = "contoso.com" optionalposition: 0
Sample DNS domain name.
title System.String = "Tier 0 Exposure Sample" optionalposition: 1
Optional chart title.
indented System.Boolean = true optionalposition: 2
Whether to write indented JSON.

Returns

Sample chart JSON.

public static Task<String> WriteJsonAsync(String path, String domainName = "contoso.com", String title = "Tier 0 Exposure Sample", Boolean indented = true, CancellationToken cancellationToken = null) #
Returns: Task<String>

Writes the deterministic ChartForgeX sample JSON to disk.

Parameters

path System.String requiredposition: 0
Destination JSON file path.
domainName System.String = "contoso.com" optionalposition: 1
Sample DNS domain name.
title System.String = "Tier 0 Exposure Sample" optionalposition: 2
Optional chart title.
indented System.Boolean = true optionalposition: 3
Whether to write indented JSON.
cancellationToken System.Threading.CancellationToken = null optionalposition: 4
Cancellation token.

Returns

Path that was written.