Ejemplo n.º 1
0
        private IProduction ParseVideoMovie(Match regexMatch)
        {
            var videoRelease = new VideoMovie();

            videoRelease.Title = ParseTitle(regexMatch);
            videoRelease.Year  = ParseYear(regexMatch);
            return(videoRelease);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
 private IProduction ParseVideoMovie(Match regexMatch)
 {
     var videoRelease = new VideoMovie();
     videoRelease.Title = ParseTitle(regexMatch);
     videoRelease.Year = ParseYear(regexMatch);
     return videoRelease;
 }