public void CreateDatabase()
 {
     using (Model1Container ctx = new Model1Container())
     {
         Assert.IsFalse(ctx.DatabaseExists());
         ctx.CreateDatabase();
         Assert.IsTrue(ctx.DatabaseExists());
     }
 }
 public void CreateDatabase()
 {
     using (Model1Container ctx = new Model1Container())
     {
         Assert.IsFalse(ctx.DatabaseExists());
         ctx.CreateDatabase();
         Assert.IsTrue(ctx.DatabaseExists());
     }
 }
        public void CreateDatabase()
        {
            suExecSQL("GRANT ALL ON `modeldb`.* to 'test'@'localhost'");
            suExecSQL("FLUSH PRIVILEGES");

            using (Model1Container ctx = new Model1Container())
            {
                Assert.IsFalse(ctx.DatabaseExists());
                ctx.CreateDatabase();
                Assert.IsTrue(ctx.DatabaseExists());
            }
        }
Exemple #4
0
        public void CreateDatabase()
        {
            st.suExecSQL("GRANT ALL ON `modeldb`.* to 'test'@'localhost'");
            st.suExecSQL("FLUSH PRIVILEGES");

            using (Model1Container ctx = new Model1Container())
            {
                Assert.False(ctx.DatabaseExists());
                ctx.CreateDatabase();
                Assert.True(ctx.DatabaseExists());
            }
        }