private void WhenSeletIsSentSetup() { ViewModelService.Setup(s => s.Messenger).Returns(messengerOrg); CreateSut(); messengerOrg.Send(ListViewModelStatesEnum.Select); sut.SelectedVMEntity = new tblKontrahent(); }
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); }