Fix update agent save + revert market in redis
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Managing.Application.Abstractions;
|
||||
using Managing.Application.Abstractions.Repositories;
|
||||
using Managing.Application.Abstractions.Services;
|
||||
using Managing.Application.Bots.Grains;
|
||||
using Managing.Application.Bots.Models;
|
||||
@@ -22,6 +23,7 @@ public class AgentGrainTests
|
||||
private readonly Mock<IAccountService> _mockAccountService;
|
||||
private readonly Mock<ITradingService> _mockTradingService;
|
||||
private readonly Mock<IServiceScopeFactory> _mockScopeFactory;
|
||||
private readonly Mock<IAgentBalanceRepository> _mockAgentBalanceRepository;
|
||||
|
||||
public AgentGrainTests()
|
||||
{
|
||||
@@ -34,6 +36,7 @@ public class AgentGrainTests
|
||||
_mockAccountService = new Mock<IAccountService>();
|
||||
_mockTradingService = new Mock<ITradingService>();
|
||||
_mockScopeFactory = new Mock<IServiceScopeFactory>();
|
||||
_mockAgentBalanceRepository = new Mock<IAgentBalanceRepository>();
|
||||
|
||||
// Setup default state
|
||||
_mockState.Setup(x => x.State).Returns(new AgentGrainState
|
||||
@@ -94,6 +97,7 @@ public class AgentGrainTests
|
||||
_mockUserService.Object,
|
||||
_mockAccountService.Object,
|
||||
_mockTradingService.Object,
|
||||
_mockAgentBalanceRepository.Object,
|
||||
_mockScopeFactory.Object);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user