Ejemplo n.º 1
0
        public void VerifyThatOpenModelSelectionOpensDialog()
        {
            var viewmodel = new ModelHomeRibbonViewModel();

            CDPMessageBus.Current.SendMessage <SessionEvent>(new SessionEvent(this.session.Object, SessionStatus.Open));
            viewmodel.OpenSelectIterationsCommand.Execute(null);

            this.navigationService.Verify(x => x.NavigateModal(It.IsAny <IDialogViewModel>()));
        }
Ejemplo n.º 2
0
        public void VerifyThatSessionArePopulated()
        {
            var viewmodel = new ModelHomeRibbonViewModel();

            CDPMessageBus.Current.SendMessage <SessionEvent>(new SessionEvent(this.session.Object, SessionStatus.Open));

            Assert.AreEqual(1, viewmodel.OpenSessions.Count);

            CDPMessageBus.Current.SendMessage <SessionEvent>(new SessionEvent(this.session.Object, SessionStatus.Closed));
            Assert.AreEqual(0, viewmodel.OpenSessions.Count);
        }