TestimoX

API Reference

Class

TestimoXDocumentationIntentResolver

Namespace TestimoX.Documentation
Assembly TestimoX
Modifiers static

Resolves reusable documentation output and replay-storage intents for thin hosts.

Inheritance

  • Object
  • TestimoXDocumentationIntentResolver

Methods

public static DocumentationStorageIntent[] ResolveDefaultReplayStorageIntents(IEnumerable<DocumentationStorageIntent> storedStorage, String jsonSnapshotDirectory, String sqlitePath, String sqlServerTarget, String outputPath, Boolean hasExplicitJson, Boolean hasExplicitSqlite, Boolean hasExplicitSqlServer, String defaultSnapshotFolderName, String defaultSqliteFileName) #
Returns: DocumentationStorageIntent[]

Resolves replay storage intents for one-off documentation runs that default to JSON and SQLite.

Parameters

storedStorage System.Collections.Generic.IEnumerable{TestimoX.Documentation.DocumentationStorageIntent} requiredposition: 0
Storage intents supplied by an invoke-time definition block.
jsonSnapshotDirectory System.String requiredposition: 1
Optional JSON snapshot directory.
sqlitePath System.String requiredposition: 2
Optional SQLite replay database path.
sqlServerTarget System.String requiredposition: 3
Optional SQL Server connection string.
outputPath System.String requiredposition: 4
Output path used to derive default replay storage paths.
hasExplicitJson System.Boolean requiredposition: 5
Whether the JSON snapshot path was explicitly supplied.
hasExplicitSqlite System.Boolean requiredposition: 6
Whether the SQLite path was explicitly supplied.
hasExplicitSqlServer System.Boolean requiredposition: 7
Whether the SQL Server target was explicitly supplied.
defaultSnapshotFolderName System.String requiredposition: 8
Default snapshot folder name.
defaultSqliteFileName System.String requiredposition: 9
Default SQLite database file name.

Returns

Resolved replay storage intents.

public static DocumentationStorageIntent[] ResolveMergedStorageIntents(IEnumerable<DocumentationStorageIntent> storedStorage, IEnumerable<DocumentationStorageIntent> overrideStorage, String jsonSnapshotDirectory, String sqlitePath, String sqlServerTarget) #
Returns: DocumentationStorageIntent[]

Merges stored report storage, save-time storage, and explicit replay storage parameters.

Parameters

storedStorage System.Collections.Generic.IEnumerable{TestimoX.Documentation.DocumentationStorageIntent} requiredposition: 0
Storage intents stored on the report.
overrideStorage System.Collections.Generic.IEnumerable{TestimoX.Documentation.DocumentationStorageIntent} requiredposition: 1
Storage intents supplied by a save-time definition block.
jsonSnapshotDirectory System.String requiredposition: 2
Optional JSON snapshot directory.
sqlitePath System.String requiredposition: 3
Optional SQLite replay database path.
sqlServerTarget System.String requiredposition: 4
Optional SQL Server connection string.

Returns

Resolved replay storage intents.

ResolveOutputIntents 4 overloads
public static DocumentationOutputIntent[] ResolveOutputIntents(IEnumerable<DocumentationOutputIntent> storedOutputs, IEnumerable<DocumentationOutputIntent> overrideOutputs, Boolean hasExplicitOutput, IReadOnlyList<DocumentationOutputFormat> requestedOutputs, String path, String theme, String defaultWordFileName) #
Returns: DocumentationOutputIntent[]

Resolves output intents from stored report definitions, save-time overrides, or explicit format parameters.

Parameters

storedOutputs System.Collections.Generic.IEnumerable{TestimoX.Documentation.DocumentationOutputIntent} requiredposition: 0
Output intents stored on the report or invoke definition.
overrideOutputs System.Collections.Generic.IEnumerable{TestimoX.Documentation.DocumentationOutputIntent} requiredposition: 1
Output intents supplied by a save-time or invoke-time definition block.
hasExplicitOutput System.Boolean requiredposition: 2
Whether the caller explicitly supplied output path, format, or theme parameters.
requestedOutputs System.Collections.Generic.IReadOnlyList{TestimoX.Documentation.DocumentationOutputFormat} requiredposition: 3
Requested output formats.
path System.String requiredposition: 4
Output file or directory path.
theme System.String requiredposition: 5
Optional Word theme name.
defaultWordFileName System.String requiredposition: 6
Default Word file name used when path is a directory.

Returns

Resolved output intents.

public static DocumentationOutputIntent[] ResolveOutputIntents(IEnumerable<DocumentationOutputIntent> storedOutputs, IEnumerable<DocumentationOutputIntent> overrideOutputs, Boolean hasExplicitOutput, IReadOnlyList<DocumentationOutputFormat> requestedOutputs, String path, String theme, DocumentationWorkbookProfileKind excelProfile, DocumentationSlideDeckProfileKind powerPointProfile, String defaultWordFileName) #
Returns: DocumentationOutputIntent[]

Resolves output intents from stored report definitions, save-time overrides, or explicit format parameters.

Parameters

storedOutputs System.Collections.Generic.IEnumerable{TestimoX.Documentation.DocumentationOutputIntent} requiredposition: 0
Output intents stored on the report or invoke definition.
overrideOutputs System.Collections.Generic.IEnumerable{TestimoX.Documentation.DocumentationOutputIntent} requiredposition: 1
Output intents supplied by a save-time or invoke-time definition block.
hasExplicitOutput System.Boolean requiredposition: 2
Whether the caller explicitly supplied output path, format, or theme parameters.
requestedOutputs System.Collections.Generic.IReadOnlyList{TestimoX.Documentation.DocumentationOutputFormat} requiredposition: 3
Requested output formats.
path System.String requiredposition: 4
Output file or directory path.
theme System.String requiredposition: 5
Optional Word theme name.
excelProfile TestimoX.Documentation.DocumentationWorkbookProfileKind requiredposition: 6
Workbook profile used when resolving Excel output intents.
powerPointProfile TestimoX.Documentation.DocumentationSlideDeckProfileKind requiredposition: 7
Slide-deck profile used when resolving PowerPoint output intents.
defaultWordFileName System.String requiredposition: 8
Default Word file name used when path is a directory.

Returns

Resolved output intents.

public static DocumentationOutputIntent[] ResolveOutputIntents(IReadOnlyList<DocumentationOutputFormat> requestedOutputs, String path, String theme, String defaultWordFileName) #
Returns: DocumentationOutputIntent[]

Resolves output intents from explicit output formats and a single output path.

Parameters

requestedOutputs System.Collections.Generic.IReadOnlyList{TestimoX.Documentation.DocumentationOutputFormat} requiredposition: 0
Requested output formats.
path System.String requiredposition: 1
Output file or directory path.
theme System.String requiredposition: 2
Optional Word theme name.
defaultWordFileName System.String requiredposition: 3
Default Word file name used when path is a directory.

Returns

Resolved output intents.

public static DocumentationOutputIntent[] ResolveOutputIntents(IReadOnlyList<DocumentationOutputFormat> requestedOutputs, String path, String theme, DocumentationWorkbookProfileKind excelProfile, DocumentationSlideDeckProfileKind powerPointProfile, String defaultWordFileName) #
Returns: DocumentationOutputIntent[]

Resolves output intents from explicit output formats and a single output path.

Parameters

requestedOutputs System.Collections.Generic.IReadOnlyList{TestimoX.Documentation.DocumentationOutputFormat} requiredposition: 0
Requested output formats.
path System.String requiredposition: 1
Output file or directory path.
theme System.String requiredposition: 2
Optional Word theme name.
excelProfile TestimoX.Documentation.DocumentationWorkbookProfileKind requiredposition: 3
Workbook profile used when resolving Excel output intents.
powerPointProfile TestimoX.Documentation.DocumentationSlideDeckProfileKind requiredposition: 4
Slide-deck profile used when resolving PowerPoint output intents.
defaultWordFileName System.String requiredposition: 5
Default Word file name used when path is a directory.

Returns

Resolved output intents.

public static String ResolveSnapshotDirectory(String snapshotDirectory, String outputPath, String defaultSnapshotFolderName) #
Returns: String

Resolves the default JSON snapshot directory from an explicit directory or output path.

Parameters

snapshotDirectory System.String requiredposition: 0
Optional JSON snapshot directory.
outputPath System.String requiredposition: 1
Output path used to derive the default snapshot directory.
defaultSnapshotFolderName System.String requiredposition: 2
Default snapshot folder name.

Returns

Resolved snapshot directory.

public static String ResolveSqlitePath(String sqlitePath, String snapshotDirectory, String defaultSqliteFileName) #
Returns: String

Resolves a SQLite replay database path from an explicit path or snapshot directory.

Parameters

sqlitePath System.String requiredposition: 0
Optional SQLite path.
snapshotDirectory System.String requiredposition: 1
Resolved snapshot directory.
defaultSqliteFileName System.String requiredposition: 2
Default SQLite database file name.

Returns

Resolved SQLite path.

public static String ResolveWordOutputPath(String path, String defaultWordFileName) #
Returns: String

Resolves a Word output path from a file or directory path.

Parameters

path System.String requiredposition: 0
Output file or directory path.
defaultWordFileName System.String requiredposition: 1
Default Word file name used when path is a directory.

Returns

Resolved Word path.