public BlockedUserController(IActivityLogService activityLogService, ILogService logService, IBlockedUserService blockedUserService, IUserService userService) { this._activityLogService = activityLogService; this._logService = logService; this._blockedUserService = blockedUserService; this._userService = userService; }
public BlockedUserController( Context context, IUserService userService, IBlockedUserService blockedUserService, IExceptionService exceptionService) { _context = context; _userService = userService; _blockedUserService = blockedUserService; _exceptionService = exceptionService; }
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)); }
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)); }
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; }
public BlockedUsersModel(Context context, IBlockedUserService blockedUserService) { _context = context; _blockedUserService = blockedUserService; }
public ManageUsersController(RoleManager <IdentityRole> roleManager, UserManager <IdentityUser> userManager, ICommentService commentService, IBlockedUserService blockedUserService) { _roleManager = roleManager; _userManager = userManager; _commentService = commentService; _blockedUserService = blockedUserService; }
public BlockedUsersController(IBlockedUserService blockedUserService) { _blockedUserService = blockedUserService; }
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; }
public UserSearchModel(Context context, IUserService userService, IBlockedUserService blockedUserService) { _context = context; _userService = userService; _blockedUserService = blockedUserService; }
public CommentService(ICommentRepository commentRepository, IHttpContextAccessor httpContextAccessor, IBlockedUserService blockedUserService, /*IPostService postService,*/ ILogService logService) { _commentRepository = commentRepository; _httpContextAccessor = httpContextAccessor; _blockedUserService = blockedUserService; //_postService = postService; _logService = logService; }
public UserManager(IUserDal userDal, IBlockedUserService blockedUserService) { _userDal = userDal; _blockedUserService = blockedUserService; }