Documentation
Table of Contents

Constructor ScriptedSpecialistService

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

ScriptedSpecialistService(params SpecialistOffer[])

Creates a service that answers requests with offers, one per request, in order. Once the queue is empty, every wait answers "not yet".

public ScriptedSpecialistService(params SpecialistOffer[] offers)

Parameters

offers SpecialistOffer[]

The offers.

ScriptedSpecialistService(Func<SpecialistRequest, SpecialistOffer?>)

Creates a service that computes the offer for each request. A null offer answers "not yet" to every wait on that request.

public ScriptedSpecialistService(Func<SpecialistRequest, SpecialistOffer?> responder)

Parameters

responder Func<SpecialistRequest, SpecialistOffer>

Returns the offer for a request.

Exceptions

ArgumentNullException

responder is null.