public void FilmFactory_builds_a_film_from_path_and_filesystem() { var fileSystem = new MockFileSystem(); IFilm film = FilmFactory <FilmFromFolder> .BuildFilm(@"C:\Media\A", fileSystem); Assert.AreEqual(typeof(FilmFromFolder), film.GetType()); }
public void It_should_build_a_mock_film_from_a_path() { Assert.AreEqual(typeof(FilmMock), FilmFactory <FilmMock> .BuildFilm(@"C:\Media\A").GetType()); }
protected virtual void OnChangeAction(string path, IFilmProcessor filmProcessor) { filmProcessor.Process(FilmFactory <T> .BuildFilm(path)); }