public void ThenCreateDatabaseInstance()
        {
            // Build
            string    nameOrConnectionString = "name=DefaultConnection";
            IDatabase db = new Database(nameOrConnectionString, DbContextConnectionFactory.Get());

            // Operator

            // Check
            Assert.IsNotNull(db);
            Assert.IsNotNull(db.ConnectionFactory);
            Assert.IsNotNull(db.Connection);
        }
        public void ThenMatchedResultsAreReturned()
        {
            // Biuld
            string    nameOrConnectionString = "name=DefaultConnection";
            IDatabase db       = new Database(nameOrConnectionString, DbContextConnectionFactory.Get());
            var       criteria = new { Id = 1 };

            // Operator
            List <Category> categories = db.SqlQuery <Category>("dbo.GetCategory", criteria).ToList();

            // Check
            foreach (Category cat in categories)
            {
                Assert.AreEqual(criteria.Id, cat.Id);
            }
        }