public RepoService(IUserGetRepository userGetRepository, IWallPostRepository wallRepo, ILogger log, Manager manager) { _userGetRepository = userGetRepository; _log = log; _manager = manager; _wallRepo = wallRepo; }
/// <summary> /// Constructor to inject the view model dependencies /// </summary> /// <param name="wallPostRepository">Wall post data access</param> /// <param name="wallReplyRepository">Wall reply data access</param> /// <param name="taxonomyService">Taxonomy service</param> /// <param name="resourceLocator">Resource utility</param> /// <param name="log">Logging utility</param> public WallViewModel(IWallPostRepository wallPostRepository, IWallReplyRepository wallReplyRepository, ITaxonomyService taxonomyService, IResourceLocator resourceLocator, ILogger log) { this._wallPostRepository = wallPostRepository; this._wallReplyRepository = wallReplyRepository; this._taxonomyService = taxonomyService; this._resourceLocator = resourceLocator; this._log = log; }
public NewsfeedMessageProcessor(IWallPostRepository _wallPostRepo, IImageRepository _imageRepository, ILoginManager _loginManager) { this._wallPostRepo = _wallPostRepo; this._imageRepository = _imageRepository; this._loginManager = _loginManager; Initialize(); }
public WallPostProvider( IWallPostRepository wallPostRepo, IWallPostCacheRepository wallPostCacheRepo, IGroupWallRepository groupWallCacheRepo) { this.wallPostRepo = wallPostRepo; this.wallPostCacheRepo = wallPostCacheRepo; this.groupWallCacheRepo = groupWallCacheRepo; }
public UnitOfWork() { _context = new KampusContext(); Cities = new CityRepositoryBase(_context); Messages = new MessageRepositoryBase(_context); Notifications = new NotificationRepositoryBase(_context); Tasks = new TaskRepositoryBase(_context); Universities = new UniversityRepositoryBase(_context); Users = new UserRepositoryBase(_context); WallPosts = new WallPostRepositoryBase(_context); }
public Manager(IReadOnlyList <UserProfileGathering> userGathering, IReadOnlyList <GroupGathering> groupLaborers, ILogger log, IUserGetRepository repo, IWallPostRepository wallRepo, IAntiBotRepository antiBotRepository) { _groupmapping = JsonConvert.DeserializeObject <Dictionary <long, double[]> >(File.ReadAllText("map_groups.json")); _antiBotRepository = antiBotRepository; _laborer = userGathering; _groupLaborers = groupLaborers; _log = log; _repo = repo; _wallRepo = wallRepo; _log.Information($"Gathering can be performed with {_laborer.Count} laborers"); }