Beispiel #1
0
        //Query om film te verwijderen
        public void VerwijderFilm(Movie movie)
        {
            string query = "DELETE FROM Movie WHERE Movieid = " + movie.Movieid;

            using (OracleConnection conn = GetConnection())
            {
                conn.Open();
                using (OracleCommand cmd = new OracleCommand(query, conn))
                {
                    cmd.ExecuteNonQuery();
                }
            }
        }
 public void TestMovie()
 {
     Movie movie = new Movie(6, "scorcese", "horror", "aktie", "scarface", "nl", 1994);
     movie.Moviename = "scarface";
     Assert.AreEqual("scarface", movie.Moviename, "Check if movie name is equal");
 }