private async Task <bool> CallRemoveUpVoteToPostAsync(string postId, IUserVotePostService service) { var claimsPrincipal = new Mock <ClaimsPrincipal>().Object; var result = await service.RemoveUpVoteToPostAsync(postId, claimsPrincipal); return(result); }
public VotePostController(IRedditCloneUnitOfWork unitOfWork, IUserVotePostService userVoteService) { this.unitOfWork = unitOfWork; this.userVoteService = userVoteService; }