public void init() { _mockHttpClient = new Mock <MockHttpHandler> { CallBase = true }; _data = new TwitterStream(new HttpClient(_mockHttpClient.Object)); }
private IMemoryCache _cache;// This is not ideal, but without storing to a database, this is the best we can do for now public HomeController(IConfiguration configuration, IMemoryCache cache, IAppStream data) { _configuration = configuration; _cache = cache; _data = data; }