Example #1
0
 public void init()
 {
     _mockHttpClient = new Mock <MockHttpHandler> {
         CallBase = true
     };
     _data = new TwitterStream(new HttpClient(_mockHttpClient.Object));
 }
Example #2
0
        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;
        }