Beispiel #1
0
        public void dddInsertScreening()
        {
            ScriptMaker sm = new ScriptMaker();
            int maxMovieId = per.CountRowsInTable("movies");
            int maxScreeningRoomId = per.CountRowsInTable("screening_rooms");

            List<string> screeningsScriptList = sm.MakeScreenings(maxScreeningRoomId, maxMovieId);
            System.IO.File.WriteAllLines(PATH + FILE_NAME, screeningsScriptList);
            per.InsertBatch(screeningsScriptList);
        }