.NET API
AgentSkillStoreContract
Tracon.Testing.Contracts.Xunit.dllBehavior tests for the IAgentSkillStore contract.
public abstract class AgentSkillStoreContract : TenantIsolationContract<IAgentSkillStore>, IAsyncLifetime, IAsyncDisposableInheritance
Section titled “Inheritance”object ← TenantIsolationContract<IAgentSkillStore> ← AgentSkillStoreContract
Implements
Section titled “Implements”IAsyncLifetime, IAsyncDisposable
Inherited Members
Section titled “Inherited Members”TenantIsolationContract<IAgentSkillStore>.TenantA, TenantIsolationContract<IAgentSkillStore>.TenantB, TenantIsolationContract<IAgentSkillStore>.CreateStoreAsync(), TenantIsolationContract<IAgentSkillStore>.UseAmbientTenant(MutableTenantContext), TenantIsolationContract<IAgentSkillStore>.InitializeAsync(), TenantIsolationContract<IAgentSkillStore>.DisposeAsync(), TenantIsolationContract<IAgentSkillStore>.OnDisposeAsync(), TenantIsolationContract<IAgentSkillStore>.SeedAsync(string, string), TenantIsolationContract<IAgentSkillStore>.ExistsAsync(string, object), TenantIsolationContract<IAgentSkillStore>.CountAsync(string), TenantIsolationContract<IAgentSkillStore>.TryDeleteAsync(string, object), TenantIsolationContract<IAgentSkillStore>.TryOverwriteAsync(string, string), TenantIsolationContract<IAgentSkillStore>.Tenant_cannot_read_another_tenants_record(), TenantIsolationContract<IAgentSkillStore>.Tenant_reads_its_own_record(), TenantIsolationContract<IAgentSkillStore>.Tenant_does_not_see_another_tenants_record_in_the_list(), TenantIsolationContract<IAgentSkillStore>.Tenant_cannot_delete_another_tenants_record(), TenantIsolationContract<IAgentSkillStore>.Same_name_lives_independently_across_two_tenants(), TenantIsolationContract<IAgentSkillStore>.AmbientTenant, TenantIsolationContract<IAgentSkillStore>.Store, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Protects both behavior parity across implementations and tenant isolation.
Constructors
Section titled “Constructors”AgentSkillStoreContract()
Section titled “ AgentSkillStoreContract()”protected AgentSkillStoreContract()Methods
Section titled “Methods”CountAsync(string)
Section titled “ CountAsync(string)”Reports how many records the given tenant sees through the listing endpoint.
protected override ValueTask<int> CountAsync(string tenantId)Parameters
Section titled “Parameters”tenantId string
The reading tenant.
Returns
Section titled “Returns”The number of records seen.
Deleting_a_missing_record_returns_false()
Section titled “ Deleting_a_missing_record_returns_false()”[Fact("/Users/farukatasoy/Desktop/projects/Tracon/src/Tracon.Testing.Contracts.Xunit/Contracts/AgentSkillStoreContract.cs", 63)]public Task Deleting_a_missing_record_returns_false()Returns
Section titled “Returns”Disabled_skill_reads_back_disabled()
Section titled “ Disabled_skill_reads_back_disabled()”[Fact("/Users/farukatasoy/Desktop/projects/Tracon/src/Tracon.Testing.Contracts.Xunit/Contracts/AgentSkillStoreContract.cs", 79)]public Task Disabled_skill_reads_back_disabled()Returns
Section titled “Returns”ExistsAsync(string, object)
Section titled “ ExistsAsync(string, object)”Reports whether the record is visible from the given tenant’s viewpoint.
protected override ValueTask<bool> ExistsAsync(string tenantId, object key)Parameters
Section titled “Parameters”tenantId string
The reading tenant.
key object
The key returned by TenantIsolationContract.SeedAsync.
Returns
Section titled “Returns”true if the record is visible.
List_is_sorted_by_name()
Section titled “ List_is_sorted_by_name()”[Fact("/Users/farukatasoy/Desktop/projects/Tracon/src/Tracon.Testing.Contracts.Xunit/Contracts/AgentSkillStoreContract.cs", 67)]public Task List_is_sorted_by_name()Returns
Section titled “Returns”Missing_skill_returns_null()
Section titled “ Missing_skill_returns_null()”[Fact("/Users/farukatasoy/Desktop/projects/Tracon/src/Tracon.Testing.Contracts.Xunit/Contracts/AgentSkillStoreContract.cs", 59)]public Task Missing_skill_returns_null()Returns
Section titled “Returns”Saved_skill_is_read_back()
Section titled “ Saved_skill_is_read_back()”[Fact("/Users/farukatasoy/Desktop/projects/Tracon/src/Tracon.Testing.Contracts.Xunit/Contracts/AgentSkillStoreContract.cs", 31)]public Task Saved_skill_is_read_back()Returns
Section titled “Returns”Saving_the_same_name_again_increments_version()
Section titled “ Saving_the_same_name_again_increments_version()”[Fact("/Users/farukatasoy/Desktop/projects/Tracon/src/Tracon.Testing.Contracts.Xunit/Contracts/AgentSkillStoreContract.cs", 46)]public Task Saving_the_same_name_again_increments_version()Returns
Section titled “Returns”SeedAsync(string, string)
Section titled “ SeedAsync(string, string)”Writes a sample record for the given tenant.
protected override ValueTask<object> SeedAsync(string tenantId, string name)Parameters
Section titled “Parameters”tenantId string
The tenant that owns the record.
name string
The name distinguishing the record. The same name may be used by two tenants.
Returns
Section titled “Returns”The key to use for reading the record back.
TryDeleteAsync(string, object)
Section titled “ TryDeleteAsync(string, object)”Attempts to delete the record on behalf of the given tenant.
protected override ValueTask<bool?> TryDeleteAsync(string tenantId, object key)Parameters
Section titled “Parameters”tenantId string
The tenant attempting the delete.
key object
The key returned by TenantIsolationContract.SeedAsync.
Returns
Section titled “Returns”true if the delete succeeded, false if the record was not found; null if the store does not offer deletion.