Fix bots + positions managements
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user