public void CastOff()
        {
            var joiner = new DataPropertiesElementJoiner();

            var mockView = new Mock<IDataPropertiesView>();
            var mockFx = new Mock<IDataPropertiesElementFx>();
            var presenter = new DataPropertiesFxPresenter(mockFx.Object, mockView.Object);

            joiner.CastOff(presenter);

            Assert.Null(presenter.DataPropertiesFx);
            Assert.Null(presenter.Fx);
        }
        public void CreatePresenter()
        {
            var joiner = new DataPropertiesElementJoiner();

            var mockView = new Mock<IDataPropertiesView>();
            var mockFx = new Mock<IDataPropertiesElementFx>();

            var result = joiner.CreatePresenter(mockFx.Object, mockView.Object);

            Assert.NotNull(result);
            Assert.Same(mockFx.Object, result.Fx);
            Assert.Same(mockFx.Object, result.DataPropertiesFx);
            Assert.Same(mockView.Object, result.View);
            Assert.Same(mockView.Object, result.DataPropertiesView);
        }