コード例 #1
0
        public async void CanSaveComments()
        {
            var expectedCommentsContainer = CommentsContainer.From(_mainWindowVm.Diffs, _mainWindowVm.GeneralComments);
            await _mainWindowVm.SaveComments();

            _commentsPersist.Received(1)
            .Save(_pullRequestLocator, Arg.Is <CommentsContainer>(x => x.Equals(expectedCommentsContainer)))
            .IgnoreAsyncWarning();
        }
コード例 #2
0
 private async void BeforeClosingWnd()
 {
     ViewModelLocator.Resolve <IBackgroundTaskRunner>().Quit();
     await _viewModel.SaveComments();
 }