Skip to content
Tracon

TenantAwareAgentSourceContract

Namespace Tracon.Testing.Contracts.AgentSources · Assembly Tracon.Testing.Contracts.Xunit.dll

Additional behavior tests for a tenant-aware agent source.

public abstract class TenantAwareAgentSourceContract : AgentSourceContract, IAsyncLifetime, IAsyncDisposable

objectAgentSourceContractTenantAwareAgentSourceContract

IAsyncLifetime, IAsyncDisposable

AgentSourceContract.CreateSourceAsync(), AgentSourceContract.InitializeAsync(), AgentSourceContract.DisposeAsync(), AgentSourceContract.Name_is_not_empty(), AgentSourceContract.Priority_is_stable_across_calls(), AgentSourceContract.Listing_is_repeatable(), AgentSourceContract.Listing_is_safe_under_concurrency(), AgentSourceContract.Resolution_is_safe_under_concurrency(), AgentSourceContract.Listed_names_are_unique_and_valid(), AgentSourceContract.Listed_descriptors_name_the_source(), AgentSourceContract.Known_agent_resolves(), AgentSourceContract.Unknown_agent_returns_null(), AgentSourceContract.Every_listed_agent_resolves(), AgentSourceContract.Resolved_agent_is_listed(), AgentSourceContract.A_pre_cancelled_token_is_honored(), AgentSourceContract.Source, AgentSourceContract.KnownAgentName, AgentSourceContract.UnknownAgentName, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

protected TenantAwareAgentSourceContract()

Tenant_lists_do_not_leak_between_tenants()

Section titled “ Tenant_lists_do_not_leak_between_tenants()”
[Fact("/Users/farukatasoy/Desktop/projects/Tracon/src/Tracon.Testing.Contracts.Xunit/Contracts/AgentSources/TenantAwareAgentSourceContract.cs", 9)]
public Task Tenant_lists_do_not_leak_between_tenants()

Task

Switches the source to a tenant and returns its known agent name.

protected abstract ValueTask<string> UseTenantAsync(string tenantId)

tenantId string

ValueTask<string>