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
serviceISpecialistServiceThe service under test.
scriptSpecialistContractScriptWhat to request and how long to wait.
cancellationTokenCancellationTokenCancels the run.
Returns
- Task<IReadOnlyList<string>>
Exceptions
- ArgumentNullException
serviceorscriptis null.- ArgumentException
The script has no definition, its timeout or grace is not greater than zero, or its waits are fewer than 1.