public void ResumeBacktest() { var requestEvent = new BacktestRequestEvent(); requestEvent.ActionType = ServiceAction.Resume; requestEvent.Key = BacktestName; IoC.Get <IEventBroker>().Publish(requestEvent); }
public void LaunchBacktest() { var viewModel = IoC.Get <BacktestStatusViewModel>(); var backtestGroup = MockUtilities.GenerateBacktestGroupRecords(1).First(); viewModel.Initialize(backtestGroup, 4); IoC.Get <IWindowManager>().ShowWindow(viewModel); var requestEvent = new BacktestRequestEvent(); requestEvent.ActionType = ServiceAction.Run; requestEvent.Response = new DarkLightResponse(); requestEvent.Response.Key = backtestGroup.GUID; requestEvent.HistDataService = IoC.Get <IHistDataService>(); IoC.Get <IEventBroker>().Publish(requestEvent); }