public void DatabaseExists() { using (Model1Container ctx = new Model1Container()) { Assert.IsFalse(ctx.DatabaseExists()); ctx.CreateDatabase(); Assert.IsTrue(ctx.DatabaseExists()); ctx.DeleteDatabase(); Assert.IsFalse(ctx.DatabaseExists()); } }
public void DatabaseExists() { using (Model1Container ctx = new Model1Container()) { Assert.IsFalse(ctx.DatabaseExists()); ctx.CreateDatabase(); Assert.IsTrue(ctx.DatabaseExists()); ctx.DeleteDatabase(); Assert.IsFalse(ctx.DatabaseExists()); } }
public void DeleteDatabase() { 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()); ctx.DeleteDatabase(); Assert.IsFalse(ctx.DatabaseExists()); } }
public void DatabaseExists() { 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()); ctx.DeleteDatabase(); Assert.False(ctx.DatabaseExists()); } }