public void _View_FxViewClosing_EventHandler_Calls_Fx_Cancel()
        {
            var mockView = new Mock<IDataPropertiesView>();
            var mock2ndView = mockView.As<ISecondaryFxView>();
            var mockFx = new Mock<IDataPropertiesElementFx>();
            var mockCmpdFx = mockFx.As<ICompoundFx>();
            var ea = new ViewActionEventArgs();

            _presenter = new DataPropertiesFxPresenter(mockFx.Object, mockView.Object);

            //Act
            _presenter._View_FxViewClosing(mockView.Object, ea);

            //Assert
            mockCmpdFx.Verify(m => m.Cancel(), Times.Once);
        }
        public void _View_FxViewClosing_Does_Not_Call_Fx_Cancel_If_Sender_Is_Null()
        {
            //Arrange
            var mockView = new Mock<IDataPropertiesView>();
            var mockFx = new Mock<IDataPropertiesElementFx>();
            var mockCmpdFx = mockFx.As<ICompoundFx>();

            _presenter = new DataPropertiesFxPresenter(null, null);
            _presenter.DataPropertiesFx = mockFx.Object;

            //Act
            _presenter._View_FxViewClosing(null, new ViewActionEventArgs());

            //Assert
            mockCmpdFx.Verify(m => m.Cancel(), Times.Never);
        }