.NET API
TestData
Tracon.Testing.Contracts.Xunit.dllSample data used by the tests.
public static class TestDataInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
Section titled “Methods”Definition(string)
Section titled “ Definition(string)”Produces a sample agent definition.
public static AgentDefinition Definition(string name)Parameters
Section titled “Parameters”name string
The agent name.
Returns
Section titled “Returns”The definition.
EvalCase(Guid, string)
Section titled “ EvalCase(Guid, string)”Produces a sample eval case.
public static EvalCase EvalCase(Guid suiteId, string query = "question")Parameters
Section titled “Parameters”suiteId Guid
The ID of the suite it belongs to.
query string
The query text.
Returns
Section titled “Returns”The case.
EvalCaseDraft(Guid?, string)
Section titled “ EvalCaseDraft(Guid?, string)”Produces a sample eval case draft, as if promoted from a production run.
public static EvalCaseDraft EvalCaseDraft(Guid? sourceRunId = null, string query = "question")Parameters
Section titled “Parameters”sourceRunId Guid?
The ID of the promoted run.
query string
The query text.
Returns
Section titled “Returns”The draft.
EvalRun(string, Guid)
Section titled “ EvalRun(string, Guid)”Produces a sample eval run.
public static EvalRun EvalRun(string tenantId, Guid suiteId)Parameters
Section titled “Parameters”tenantId string
The tenant ID.
suiteId Guid
The ID of the suite being measured.
Returns
Section titled “Returns”The run.
EvalSuite(string, string)
Section titled “ EvalSuite(string, string)”Produces a sample eval suite.
public static EvalSuite EvalSuite(string tenantId = "default", string name = "customer-support-team")Parameters
Section titled “Parameters”tenantId string
The tenant ID.
name string
The suite name.
Returns
Section titled “Returns”The suite.
Event(Guid, long)
Section titled “ Event(Guid, long)”Produces a sample run event.
public static RunEvent Event(Guid runId, long sequence)Parameters
Section titled “Parameters”runId Guid
The run ID.
sequence long
The sequence number.
Returns
Section titled “Returns”The event.
Job(string, DateTimeOffset?)
Section titled “ Job(string, DateTimeOffset?)”Produces a sample queued job. Ready to pass to EnqueueAsync.
public static JobRecord Job(string tenantId = "default", DateTimeOffset? scheduledFor = null)Parameters
Section titled “Parameters”tenantId string
The tenant ID.
scheduledFor DateTimeOffset?
The time the job is due to run. Defaults to now.
Returns
Section titled “Returns”The job record.
Run(Guid, string)
Section titled “ Run(Guid, string)”Produces a sample run start.
public static RunStartInfo Run(Guid runId, string agentName = "test-agent")Parameters
Section titled “Parameters”runId Guid
The run ID.
agentName string
The agent name.
Returns
Section titled “Returns”The start info.
Schedule(string, string)
Section titled “ Schedule(string, string)”Produces a sample schedule.
public static JobSchedule Schedule(string tenantId = "default", string name = "night-report")Parameters
Section titled “Parameters”tenantId string
The tenant ID.
name string
The schedule name.
Returns
Section titled “Returns”The schedule.
Session(string, JsonElement?)
Section titled “ Session(string, JsonElement?)”Produces a sample session record.
public static SessionRecord Session(string sessionId, JsonElement? state = null)Parameters
Section titled “Parameters”sessionId string
The session ID.
state JsonElement?
The serialized state. A sample object is used when omitted.
Returns
Section titled “Returns”The session record.
State(string)
Section titled “ State(string)”Converts raw JSON text to a JsonElement.
public static JsonElement State(string json)Parameters
Section titled “Parameters”json string
The JSON text.
Returns
Section titled “Returns”A standalone JSON element.