Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 3
0
 public NewsfeedMessageProcessor(IWallPostRepository _wallPostRepo,
                                 IImageRepository _imageRepository, ILoginManager _loginManager)
 {
     this._wallPostRepo    = _wallPostRepo;
     this._imageRepository = _imageRepository;
     this._loginManager    = _loginManager;
     Initialize();
 }
Ejemplo n.º 4
0
 public WallPostProvider(
     IWallPostRepository wallPostRepo,
     IWallPostCacheRepository wallPostCacheRepo,
     IGroupWallRepository groupWallCacheRepo)
 {
     this.wallPostRepo       = wallPostRepo;
     this.wallPostCacheRepo  = wallPostCacheRepo;
     this.groupWallCacheRepo = groupWallCacheRepo;
 }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
 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");
 }