Example #1
0
        private IProduction ParseVideoMovie(Match regexMatch)
        {
            var videoRelease = new VideoMovie();

            videoRelease.Title = ParseTitle(regexMatch);
            videoRelease.Year  = ParseYear(regexMatch);
            return(videoRelease);
        }
Example #2
0
        public void TestParseCreatesValidVideoMovieObjectForStraightToVideoRelease()
        {
            var productionDefinition = @"# Yellow Lights (2007) (V)";

            var expected = new VideoMovie()
            {
                Title = "Yellow Lights",
                Year  = 2007
            };

            var logger = new Mock <ILog>();
            var actual = new ProductionParser(logger.Object).Parse(productionDefinition);

            Assert.AreEqual(expected, actual);
        }
        public void TestParseCreatesValidVideoMovieObjectForStraightToVideoRelease()
        {
            var productionDefinition = @"# Yellow Lights (2007) (V)";

            var expected = new VideoMovie()
            {
                Title = "Yellow Lights",
                Year = 2007
            };

            var logger = new Mock<ILog>();
            var actual = new ProductionParser(logger.Object).Parse(productionDefinition);
            Assert.AreEqual(expected, actual);
        }
Example #4
0
 private IProduction ParseVideoMovie(Match regexMatch)
 {
     var videoRelease = new VideoMovie();
     videoRelease.Title = ParseTitle(regexMatch);
     videoRelease.Year = ParseYear(regexMatch);
     return videoRelease;
 }