Fix bots + positions managements

This commit is contained in:
2025-04-23 19:36:26 +02:00
parent ad5996ca61
commit 76b8b7ebb6
24 changed files with 299 additions and 98 deletions

View File

@@ -1,4 +1,5 @@
using Managing.Application.Abstractions.Repositories;
using Managing.Application.Abstractions;
using Managing.Application.Abstractions.Repositories;
using Managing.Application.Abstractions.Services;
using Managing.Application.Backtesting;
using Managing.Application.Bots;
@@ -37,7 +38,8 @@ namespace Managing.Application.Tests
Chainlink,
GbcFeed
};
var evmManager = new EvmManager(Subgraphs, CreateWebProxyService());
var cacheService = new Mock<ICacheService>();
var evmManager = new EvmManager(Subgraphs, CreateWebProxyService(), cacheService.Object);
var evmProcessor = new EvmProcessor(new Mock<ILogger<EvmProcessor>>().Object, evmManager);
var exchangeProcessors = new List<IExchangeProcessor>()
@@ -87,7 +89,7 @@ namespace Managing.Application.Tests
}
// Helper method to create Web3ProxyService for tests
public static IWeb3ProxyService CreateWebProxyService(string baseUrl = "http://localhost:4111/api/")
public static IWeb3ProxyService CreateWebProxyService(string baseUrl = "http://localhost:4111")
{
var settings = new Web3ProxySettings { BaseUrl = baseUrl };
var options = Options.Create(settings);