Пример #1
0
        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);
        }
Пример #2
0
 private async void ContactsPage_Appearing(object sender, EventArgs e)
 {
     await _viewmodel.Initialize();
 }