Esempio n. 1
0
        public void ShouldBuildCorrectly()
        {
            var observablePosition = new MockObservablePosition();

            PositionPieChartViewModel model = new PositionPieChartViewModel(observablePosition);

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