Пример #1
0
        public void ShouldBuildCorrectly()
        {
            var observablePosition = new MockObservablePosition();

            PositionPieChartViewModel model = new PositionPieChartViewModel(observablePosition);

            Assert.AreSame(observablePosition, model.Position);
        }
Пример #2
0
 public void SetUp()
 {
     ordersController   = new MockOrdersController();
     observablePosition = new MockObservablePosition();
     eventAggregator    = new Mock <IEventAggregator>();
     eventAggregator.Setup(x => x.GetEvent <TickerSymbolSelectedEvent>()).Returns(
         new MockTickerSymbolSelectedEvent());
 }