public DashboardController() { //Hideous temporary code //no! Unity! Dependency injection! Single Context wrapper! _Crashes = new CrashRepository(_entities); _Buggs = new BuggRepository(_entities); }
/// <summary> /// Link the Http context cache to a crash repository. /// </summary> /// <param name="inCache">The current Http context cache.</param> /// <param name="inCrashRepository">The repository to associate the cache with.</param> public CachedDataService( Cache inCache, CrashRepository inCrashRepository ) { CacheInstance = inCache; Crashes = inCrashRepository; }