Esempio n. 1
0
 public void SendMessage()
 {
     if (SelectedEventType == EventType.LinkedNavigation)
     {
         IoC.Get <IEventBroker>().Publish(new LinkedNavigationEvent
         {
             NavigationAction = SelectedNavigationAction,
             ColorGroup       = SelectedColorGroup,
             Destination      = SelectedNavigationDestination,
             Key = TestKey,
         });
     }
     else if (SelectedEventType == EventType.Trade)
     {
         IoC.Get <IEventBroker>().Publish(new TradeEvent
         {
             Key      = TestKey,
             Fill     = MockUtilities.GenerateFills(TestKey, 1)[0],
             Order    = MockUtilities.GenerateOrders(TestKey, 1)[0],
             Position = MockUtilities.GeneratePositions(TestKey, 1)[0],
             Tick     = MockUtilities.GenerateTicks(TestKey, 1)[0],
         });
     }
 }
Esempio n. 2
0
 public void AddOrder()
 {
     Orders.Add(MockUtilities.GenerateOrders("backtestidToImplement", 1)[0]);
 }