Ejemplo n.º 1
0
        public IEnumerable <string> SelectFrom(string tableName, string name)
        {
            var table = attributesMapper.Map(tableName);

            if (!table.ContainsKey(name))
            {
                var message = string.Format("{0} is not in the table {1}", name, tableName);
                throw new ArgumentException(message);
            }

            return(table[name]);
        }
 public void AppendXmlFileExtensionToTableName()
 {
     mapper.Map(tableName);
     mockStreamLoader.Verify(l => l.LoadFor(fileName), Times.Once);
 }
Ejemplo n.º 3
0
        public void ReturnTableFromInnerMapper()
        {
            var result = proxy.Map("table name");

            Assert.That(result, Is.EqualTo(table));
        }
Ejemplo n.º 4
0
        private void CacheTable(string tableName)
        {
            var table = innerMapper.Map(tableName);

            tables.Add(tableName, table);
        }