26 lines
807 B
C#
26 lines
807 B
C#
using Hcs.Broker.Api;
|
|
using Hcs.Service.Async.Nsi;
|
|
|
|
namespace Hcs.Broker.Mock.Api
|
|
{
|
|
/// <inheritdoc cref="INsiApi"/>
|
|
public class MockNsiApi : INsiApi
|
|
{
|
|
/// <inheritdoc cref="INsiApi"/>
|
|
public async Task<IEnumerable<NsiItemType>> ExportDataProviderNsiItemAsync(exportDataProviderNsiItemRequestRegistryNumber registryNumber, CancellationToken token = default)
|
|
{
|
|
await Task.Delay(3000, token);
|
|
|
|
return [];
|
|
}
|
|
|
|
/// <inheritdoc cref="INsiApi"/>
|
|
public async Task<string> RequestExportDataProviderNsiItemAsync(exportDataProviderNsiItemRequestRegistryNumber registryNumber, CancellationToken token = default)
|
|
{
|
|
await Task.Delay(3000, token);
|
|
|
|
return Guid.NewGuid().ToString();
|
|
}
|
|
}
|
|
}
|