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