Table of Contents

Interface IAddressVerificationDiagnostics

Namespace
SEBT.Portal.Infrastructure.Services
Assembly
SEBT.Portal.Infrastructure.dll

Runs address verification against simulated Smarty outcomes so diagnostic endpoints can exercise the verification service's error-handling and logging paths without any network activity.

public interface IAddressVerificationDiagnostics

Methods

ValidateAgainstCannedServerErrorAsync(CancellationToken)

Verifies a sample address against a canned Smarty server-error response, returning the verification outcome.

Task<Result<AddressUpdateSuccess>> ValidateAgainstCannedServerErrorAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<Result<AddressUpdateSuccess>>

ValidateAgainstCannedSuccessAsync(string, CancellationToken)

Verifies a sample address against a canned successful Smarty response carrying the given JSON body, returning the verification outcome.

Task<Result<AddressUpdateSuccess>> ValidateAgainstCannedSuccessAsync(string responseBody, CancellationToken cancellationToken = default)

Parameters

responseBody string
cancellationToken CancellationToken

Returns

Task<Result<AddressUpdateSuccess>>

ValidateAgainstTransportFailureAsync(CancellationToken)

Verifies a sample address against a simulated transport-level failure (e.g. firewall block, DNS failure), returning the verification outcome.

Task<Result<AddressUpdateSuccess>> ValidateAgainstTransportFailureAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<Result<AddressUpdateSuccess>>