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(); }
private async void BeforeClosingWnd() { ViewModelLocator.Resolve <IBackgroundTaskRunner>().Quit(); await _viewModel.SaveComments(); }