public HomeController(IHAVAuthenticationService anAuthService, IHAVHomeService aService, IWhoIsOnlineService<User, WhoIsOnline> aWhoIsOnlineService) { theAuthService = anAuthService; theService = aService; theWhoIsOnlineService = aWhoIsOnlineService; }
public HomeController() { theService = new HAVHomeService(new ModelStateWrapper(this.ModelState)); theAuthService = new HAVAuthenticationService(); theWhoIsOnlineService = new WhoIsOnlineService<User, WhoIsOnline>(new EntityHAVWhoIsOnlineRepository()); }