public void DataCacheTests_AddNewEntry() { IMovieData movieData = new DummyMovieData(); IDataCache dataCache = new DataCache(movieData); dataCache.AddNewEntry(DummyMovies.NewMovie); Console.WriteLine(); }
public void DataCacheTests_AddOldEntry() { IMovieData movieData = new DummyMovieData(); IDataCache dataCache = new DataCache(movieData); try { dataCache.AddNewEntry(DummyMovies.SingleMovie); } catch (Exception ex) { if (ex.Message != "Movie allready in cache.") { throw ex; } } Console.WriteLine(); }