public void Insert_Prota_ExecutesNonEmptyCommand() { var testConnection = new TestDbConnection(); var dbContext = new DbContext(DbType.Prota, testConnection); dbContext.Insert(new TestPoco()); Assert.AreEqual(1, testConnection.ExecutedCommands.Count); Assert.IsFalse(string.IsNullOrEmpty(testConnection.ExecutedCommands[0])); }
public void Update_Defteros_ExecutesEmptyCommand() { var testConnection = new TestDbConnection(); var dbContext = new DbContext(DbType.Defteros, testConnection); dbContext.Update(new TestPoco()); Assert.AreEqual(1, testConnection.ExecutedCommands.Count); Assert.IsTrue(string.IsNullOrEmpty(testConnection.ExecutedCommands[0])); }