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

DeactivateWithCloseAndTwoTabsExpectBuildTwiceWithEmptyDebugWriterWriteMessage() private method

        public void DeactivateWithCloseAndTwoTabsExpectBuildTwiceWithEmptyDebugWriterWriteMessage()
        {
            lock (syncroot)
            {
                CreateFullExportsAndVm();
                _eventAggregator.Setup(e => e.Publish(It.IsAny<UpdateDeployMessage>()))
                               .Verifiable();
                AddAdditionalContext();

                _mainViewModel.Dispose();

                _eventAggregator.Verify(e => e.Publish(It.IsAny<UpdateDeployMessage>()), Times.Exactly(2));
            }
        }
mvTest