public void CanAddDimensionValueToDimension()
        {
            var adapter    = new EndecaDimensionAdapter(_mockEndecaDimensionFileAdapter.Object, new[] { "1", "2" });
            var newDimNode =
                MockEndecaDimensionGenerator.GetMockEndecaDimensionNode(new EndecaDimensionProps
            {
                Id         = 79,
                Name       = "New Dim Node",
                NameFrench = "New Dim Node Fr"
            });

            adapter.AddDimensionNodeToDimension(newDimNode, 1, 38);
            var actual =
                adapter.GetAllEndecaDimensions()
                .FirstOrDefault(d => d.DimId.Id == 1)
                .DimNode.DimNodes.FirstOrDefault(n => n.DimVal.DimValId.Id == 38)
                .DimNodes;

            Assert.IsTrue(actual.Length == 1);

            var insertedNode = actual.FirstOrDefault(n => n.DimVal.DimValId.Id == 79);

            Assert.IsNotNull(insertedNode);
            Assert.AreEqual(insertedNode, newDimNode);
        }
        public void CanRemoveDimensionValueFromDimension()
        {
            var adapter = new EndecaDimensionAdapter(_mockEndecaDimensionFileAdapter.Object, new[] { "1", "2" });

            adapter.RemoveDimensionNodeFromDimension(1, 40);

            var actual = adapter.GetAllEndecaDimensions().FirstOrDefault(d => d.DimId.Id == 1);

            Assert.IsTrue(actual.DimNode.DimNodes.Length == 1);
            Assert.IsTrue(actual.DimNode.DimNodes[0].DimVal.DimValId.Id == 38);
        }