Documentation
Table of Contents

Method RunAsync

Namespace
IntentSharp.Specialist.Testing
Assembly
IntentSharp.Specialist.dll

RunAsync(ISpecialistService, SpecialistContractScript, CancellationToken)

Runs every step against service with script and returns the problems found.

public static Task<IReadOnlyList<string>> RunAsync(ISpecialistService service, SpecialistContractScript script, CancellationToken cancellationToken = default)

Parameters

service ISpecialistService

The service under test.

script SpecialistContractScript

What to request and how long to wait.

cancellationToken CancellationToken

Cancels the run.

Returns

Task<IReadOnlyList<string>>

Exceptions

ArgumentNullException

service or script is null.

ArgumentException

The script has no definition, its timeout or grace is not greater than zero, or its waits are fewer than 1.