public void Map_NotFound_RaiseError(string defNamespace, string defPrefix, string dsName)
        {
            Mock <IDataModelAggregator> aggregator = new Mock <IDataModelAggregator>();

            aggregator.SetupGet(agg => agg.DefaultNamespace).Returns(defNamespace);

            EnvironmentMapper mapper = new EnvironmentMapper(aggregator.Object);

            mapper.Mapping             = this._mapping;
            mapper.DefaultTargetPrefix = defPrefix;

            Assert.Throws <KeyNotFoundException>(() => mapper.Map(dsName));
        }
        public void Map_WithDefaults_ReturnMapped(string defNamespace, string defPrefix, string dsName, string tgtName)
        {
            Mock <IDataModelAggregator> aggregator = new Mock <IDataModelAggregator>();

            aggregator.SetupGet(agg => agg.DefaultNamespace).Returns(defNamespace);

            EnvironmentMapper mapper = new EnvironmentMapper(aggregator.Object);

            mapper.Mapping             = this._mapping;
            mapper.DefaultTargetPrefix = defPrefix;

            Assert.Equal(tgtName, mapper.Map(dsName));
        }