Add mocked broker client
This commit is contained in:
17
Hcs.Broker.Mock/Api/MockNsiApi.cs
Normal file
17
Hcs.Broker.Mock/Api/MockNsiApi.cs
Normal file
@ -0,0 +1,17 @@
|
||||
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 [];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user