public void RemoveContactMustCallServiceWithContact() { var vm = new ContactListVM(null, mock.Object); vm.Initialize().Wait(); vm.Elements.First().RemoveContactCommand.Execute( vm.Elements.First() ); mock.Verify(x => x.Remove(contact), Times.Once); }
private async void ContactsPage_Appearing(object sender, EventArgs e) { await _viewmodel.Initialize(); }