Dev2.Core.Tests.mvTest.StartStopRecordedFeedbackCommandExpectsFeedbackStppedtInProgress C# (CSharp) Method

StartStopRecordedFeedbackCommandExpectsFeedbackStppedtInProgress() private method

        public void StartStopRecordedFeedbackCommandExpectsFeedbackStppedtInProgress()
        {
            lock (syncroot)
            {
                CreateFullExportsAndVm();
                var mockAction = new Mock<IAsyncFeedbackAction>();
                mockAction.Setup(a => a.StartFeedback()).Verifiable();
                _feedbackInvoker.SetupGet(i => i.CurrentAction).Returns(mockAction.Object);
                _mainViewModel.StartStopRecordedFeedbackCommand.Execute(null);
                _feedbackInvoker.Verify(i => i.InvokeFeedback(It.IsAny<RecorderFeedbackAction>()), Times.Never());

                // PBI 9598 - 2013.06.10 - TWR : added null parameter
                mockAction.Verify(a => a.FinishFeedBack(null), Times.Once());
            }
        }
mvTest