Esempio n. 1
0
        public void TriggerShareWhenExecutingShare()
        {
            var viewModel = CreateViewModel();

            viewModel.Text.Value = "test";

            viewModel.ShareCommand.Execute();

            A.CallTo(() => _dataTransferService.Share(A <ShareData> .Ignored)).MustHaveHappened(Repeated.Exactly.Once);
        }
Esempio n. 2
0
 private static void ShareLink(IDataTransferService transferService, HistoryItemViewModel historyItem)
 {
     transferService.Share(historyItem.SharedData);
 }
 private static void ShareLink(IDataTransferService transferService, string title, Uri uri)
 {
     transferService.Share(new ShareData(title, uri.ToString()));
 }