Skip to main content

ResQ.Blockchain.MockNeoClient

MockNeoClient.RecordLocationAttestationAsync(LocationAttestation, CancellationToken) Method

Records a mock location attestation in memory.

Parameters

attestation LocationAttestation The location attestation to record. cancellationToken System.Threading.CancellationToken Cancellation token for the operation. Implements RecordLocationAttestationAsync(LocationAttestation, CancellationToken)

Returns

System.Threading.Tasks.Task<TransactionResult>
A TransactionResult with a generated transaction hash and confirmed status.

Example

Remarks

This mock implementation generates a transaction hash and increments the block height, logging the attestation details including drone ID and coordinates.