コード例 #1
0
 private void WhenSeletIsSentSetup()
 {
     ViewModelService.Setup(s => s.Messenger).Returns(messengerOrg);
     CreateSut();
     messengerOrg.Send(ListViewModelStatesEnum.Select);
     sut.SelectedVMEntity = new tblKontrahent();
 }
コード例 #2
0
        public void WhenListViewModelStatesEnumIsSent_ButtonTextChanges()
        {
            ViewModelService.Setup(s => s.Messenger).Returns(messengerOrg);
            CreateSut();

            messengerOrg.Send(ListViewModelStatesEnum.Select);

            Assert.AreEqual("Wybierz", sut.SelectEditButtonTitle);

            messengerOrg.Send(ListViewModelStatesEnum.AddEdit);

            Assert.AreEqual("Edytuj", sut.SelectEditButtonTitle);
        }