Skip to content

Commit aa32a73

Browse files
committed
Build
1 parent 51bd055 commit aa32a73

3 files changed

Lines changed: 13 additions & 152 deletions

File tree

Core/Core.Tests/SiloBuilder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Core.Models;
22
using Core.Services;
33
using Microsoft.Extensions.Configuration;
4-
using Microsoft.Extensions.DependencyInjection;
54
using Orleans.Hosting;
65
using Orleans.Providers;
76
using Orleans.Serialization;

Gateways/Simulation/Tests/PositionsGrainTests.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using Core.Conventions;
12
using Core.Enums;
23
using Core.Grains;
34
using Core.Models;
@@ -52,8 +53,10 @@ public void StoreException()
5253
[Fact]
5354
public async Task Store()
5455
{
56+
var descriptor = Descriptor;
5557
var stamp = DateTime.Now.Ticks;
56-
var grain = _cluster.GrainFactory.GetGrain<IPositionsGrain>(Descriptor);
58+
var grain = _cluster.GrainFactory.GetGrain<IPositionsGrain>(descriptor);
59+
var actionsGrain = _cluster.GrainFactory.GetGrain<ITransactionsGrain>(descriptor);
5760
var order = new Order
5861
{
5962
Amount = 1,
@@ -76,6 +79,15 @@ public async Task Store()
7679
}
7780
};
7881

82+
var observer = new Mock<ITradeObserver>();
83+
var observerReference = _cluster.Client.CreateObjectReference<ITradeObserver>(observer.Object);
84+
85+
observer
86+
.Setup(o => o.StreamOrder(It.IsAny<Order>()))
87+
.Verifiable();
88+
89+
await actionsGrain.Setup(observerReference);
90+
7991
// Open
8092

8193
var openPosition = await grain.Send(order);

Gateways/Tradier/Libs/TradierGateway.cs

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)