Пример #1
0
            public void CanBeExecutedForPlaceholders()
            {
                var session     = CreateSession();
                var thread      = CreateThread();
                var currentUser = Substitute.For <IAccount>();
                var target      = PullRequestReviewCommentViewModel.CreatePlaceholder(session, thread, currentUser);

                Assert.That(target.BeginEdit.CanExecute(new object()), Is.True);
            }
            public void CannotBeExecutedForPlaceholders()
            {
                var session     = CreateSession();
                var thread      = CreateThread();
                var currentUser = Substitute.For <IActorViewModel>();
                var target      = PullRequestReviewCommentViewModel.CreatePlaceholder(session, thread, currentUser);

                Assert.That(target.Delete.CanExecute(new object()), Is.False);
            }