Table of Contents

Interface ISpec

Namespace
Microsoft.Accordant
Assembly
Accordant.Operations.dll

Non-generic interface for specs, allowing type-erased usage.

public interface ISpec

Properties

this[string]

Indexer to get/set operations by name.

IOperation this[string name] { get; set; }

Parameters

name string

Property Value

IOperation

Operations

The operations registered in this spec.

IEnumerable<IOperation> Operations { get; }

Property Value

IEnumerable<IOperation>

Methods

Add(IOperation)

Registers an operation with this spec.

void Add(IOperation operation)

Parameters

operation IOperation

CreateTestingContext(string)

Creates a new testing context for this spec.

TestingContext CreateTestingContext(string testDirectoryPath = null)

Parameters

testDirectoryPath string

Optional path for test output.

Returns

TestingContext

A new testing context.

GetOperation(string)

Gets an operation by name.

IOperation GetOperation(string name)

Parameters

name string

Returns

IOperation

GetOperationName(IOperation)

Gets the name the given operation was registered under.

string GetOperationName(IOperation operation)

Parameters

operation IOperation

Returns

string