public void FilmTestInitialize() { defaultFileSystem = new MockFileSystem(new Dictionary<string, MockFileData> { { @"C:\Some\Path\To\In.the.Heat.of.the.Night.1967\InTheHeatofTheNight_imdb_.nfo", new MockFileData("http://www.imdb.com/title/tt0061811/") } }); film = new CachedFilm(test_path, defaultFileSystem, new MockRatingService()); }
public void FilmTestInitialize() { defaultFileSystem = new MockFileSystem(new Dictionary <string, MockFileData> { { @"C:\Some\Path\To\In.the.Heat.of.the.Night.1967\InTheHeatofTheNight_imdb_.nfo", new MockFileData("http://www.imdb.com/title/tt0061811/") } }); film = new CachedFilm(test_path, defaultFileSystem, new MockRatingService()); }
public void It_should_not_fail_when_internet_down() { var no_internet_film = new CachedFilm(test_path, defaultFileSystem, new InternetDownRatingService()); Assert.AreEqual(no_internet_film.Rating, ""); }