Exemple #1
0
        public void varGenerateMovieOutputTest()
        {
            var target     = new YAMJ();
            var movieModel = this.CreateTestMovie();

            var output = target.GenerateMovieOutput(movieModel);

            Assert.IsFalse(string.IsNullOrEmpty(output));
        }
Exemple #2
0
        public void SaveMovieTest()
        {
            var               target            = new YAMJ();
            MovieModel        movieModel        = this.CreateTestMovie();
            MovieSaveSettings movieSaveSettings = new MovieSaveSettings
            {
                NormalFanartNameTemplate = "<fileName>-fanart",
                NormalPosterNameTemplate = "<fileName>",
                NormalNfoNameTemplate    = "<fileName>.nfo"
            };

            target.SaveMovie(movieModel);
        }