public MediaSearchServiceTests() { movieDatabaseProxy = Substitute.For <IMovieDatabaseProxy>(); memoryCacheAdapter = Substitute.For <IMemoryCacheAdapter>(); sut = new MediaSearchService(movieDatabaseProxy, memoryCacheAdapter); }
public MediaSearchService(IMovieDatabaseProxy movieDatabaseProxy, IMemoryCacheAdapter memoryCache) { this._movieDatabaseProxy = movieDatabaseProxy; this._memoryCache = memoryCache; }