public NotificationsEventManager(IUserService userService, IPhotoService photoService, IAlbumService albumService, IUrlUtil urlUtil, IPhotoCommentService commentService) { _userService = userService; _photoService = photoService; _hubNotify = GlobalHost.ConnectionManager.GetHubContext <NotificationsHub>(); _urlUtil = urlUtil; _albumService = albumService; _commentService = commentService; }
public PhotoCommentController() { UserInformationFactory.SetInstance(UserInformation<User, WhoIsOnline>.Instance(new HttpContextWrapper(System.Web.HttpContext.Current), new WhoIsOnlineService<User, WhoIsOnline>(new EntityWhoIsOnlineRepository()), new GetUserStrategy())); theValidation = new ModelStateWrapper(this.ModelState); thePhotoCommentService = new PhotoCommentService(theValidation); }
public PhotoCommentApiController(IUserService userService, IPhotoCommentService photoCommentService) { _userService = userService; _photoCommentService = photoCommentService; }