Beispiel #1
0
        private void GetQueryCriteriaIntoModel(string queryId, CountsQueryModel model)
        {
            var tableNames = _schemaRepository.GetSchemaTables();
            CriteriaRepository criteriaRepository = new CriteriaRepository(_dbConnectionString);
            var criteriaThisQuery = criteriaRepository.GetCriteriaForQuery(Convert.ToInt64(queryId));

            model.QueryCriteria = CriteriaMapper.MapCriteriaDtoToCriteriaGridViewModel(criteriaThisQuery);
        }
Beispiel #2
0
        public void SchemaRepositoryReturnTableNames()
        {
            var result = schemaRepository.GetSchemaTables();

            Assert.AreEqual(24, result.Count);
            Assert.IsTrue(result.Contains("Mortgages"));
        }