Exemplo n.º 1
0
 public BlockedUserController(IActivityLogService activityLogService,
                              ILogService logService,
                              IBlockedUserService blockedUserService,
                              IUserService userService)
 {
     this._activityLogService = activityLogService;
     this._logService         = logService;
     this._blockedUserService = blockedUserService;
     this._userService        = userService;
 }
Exemplo n.º 2
0
 public BlockedUserController(
     Context context,
     IUserService userService,
     IBlockedUserService blockedUserService,
     IExceptionService exceptionService)
 {
     _context            = context;
     _userService        = userService;
     _blockedUserService = blockedUserService;
     _exceptionService   = exceptionService;
 }
Exemplo n.º 3
0
        public static bool CanBlockUser(
            IBlockedUserService blockedUserService,
            User actionUser,
            User otherUser)
        {
            // Validate
            blockedUserService.Should().NotBeNull();
            actionUser.Should().NotBeNull();
            otherUser.Should().NotBeNull();

            // Return whether or not the action user is part of the contact pair
            return(!blockedUserService.AreUsersBlocked(actionUser, otherUser));
        }
Exemplo n.º 4
0
        public static bool CanUnblockUser(
            IBlockedUserService blockedUserService,
            User actionUser,
            User blocked)
        {
            // Validate
            blockedUserService.Should().NotBeNull();
            actionUser.Should().NotBeNull();
            blocked.Should().NotBeNull();

            // Return whether or not the action user is part of the contact pair
            return(blockedUserService.IsUserBlocked(blocked, actionUser));
        }
Exemplo n.º 5
0
 public MessageController(IActivityLogService activityLogService,
                          ILogService logService,
                          IMessageService messageService,
                          IUserService userService,
                          IBlockedUserService blockedUserService,
                          IMapper mapper,
                          IUriService uriService)
 {
     this._activityLogService = activityLogService;
     this._logService         = logService;
     this._messageService     = messageService;
     this._userService        = userService;
     this._blockedUserService = blockedUserService;
     this._mapper             = mapper;
     this._uriService         = uriService;
 }
Exemplo n.º 6
0
 public BlockedUsersModel(Context context, IBlockedUserService blockedUserService)
 {
     _context            = context;
     _blockedUserService = blockedUserService;
 }
Exemplo n.º 7
0
 public ManageUsersController(RoleManager <IdentityRole> roleManager, UserManager <IdentityUser> userManager, ICommentService commentService, IBlockedUserService blockedUserService)
 {
     _roleManager        = roleManager;
     _userManager        = userManager;
     _commentService     = commentService;
     _blockedUserService = blockedUserService;
 }
Exemplo n.º 8
0
 public BlockedUsersController(IBlockedUserService blockedUserService)
 {
     _blockedUserService = blockedUserService;
 }
Exemplo n.º 9
0
 public PostService(IPostRepository postRepository, IEntryRepository entryRepository, IEntryRatingService entryRatingService, IHttpContextAccessor httpContext, IBlockedUserService blockedUserService, ILogService logService)
 {
     _postRepository     = postRepository;
     _entryRepository    = entryRepository;
     _entryRatingService = entryRatingService;
     _httpContext        = httpContext;
     _blockedUserService = blockedUserService;
     _logService         = logService;
 }
Exemplo n.º 10
0
 public UserSearchModel(Context context, IUserService userService, IBlockedUserService blockedUserService)
 {
     _context            = context;
     _userService        = userService;
     _blockedUserService = blockedUserService;
 }
Exemplo n.º 11
0
 public CommentService(ICommentRepository commentRepository, IHttpContextAccessor httpContextAccessor, IBlockedUserService blockedUserService, /*IPostService postService,*/ ILogService logService)
 {
     _commentRepository   = commentRepository;
     _httpContextAccessor = httpContextAccessor;
     _blockedUserService  = blockedUserService;
     //_postService = postService;
     _logService = logService;
 }
Exemplo n.º 12
0
 public UserManager(IUserDal userDal, IBlockedUserService blockedUserService)
 {
     _userDal            = userDal;
     _blockedUserService = blockedUserService;
 }