Exemplo n.º 1
0
 public TweetController(ITwitterApiCallService twitterApiCallService, ITweetService tweetService, UserManager <User> manager, IUserTweetService userTweetService, ICascadeDeleteService cascadeDeleteService, IFolloweeService followeeService)
 {
     this.twitterApiCallService = twitterApiCallService ?? throw new ArgumentNullException(nameof(twitterApiCallService));
     this.tweetService          = tweetService ?? throw new ArgumentNullException(nameof(tweetService));
     this.manager              = manager ?? throw new ArgumentNullException(nameof(manager));
     this.userTweetService     = userTweetService ?? throw new ArgumentNullException(nameof(userTweetService));
     this.cascadeDeleteService = cascadeDeleteService ?? throw new ArgumentNullException(nameof(cascadeDeleteService));
     this.followeeService      = followeeService ?? throw new ArgumentNullException(nameof(followeeService));
 }
Exemplo n.º 2
0
 public AddFavouriteTweetsController(ITwitterAPIService twitterApiService, ITweetService tweetService, IUserTweetService userTweetService, IUserTweeterService userTweeterService, UserManager <User> userManager, IAutoMapper autoMapper)
 {
     this.twitterApiService  = twitterApiService;
     this.tweetService       = tweetService;
     this.userTweetService   = userTweetService;
     this.userTweeterService = userTweeterService;
     this.userManager        = userManager;
     this.autoMapper         = autoMapper;
 }
 public CascadeDeleteEntityService(IAdminUserService userService, IUnitOfWork unitOfWork,
                                   IUserTweetService userTweetService, ITweetService tweetService,
                                   IUserTweeterService userTweeterService, ITweeterService tweeterService)
 {
     this.userService        = userService ?? throw new ArgumentNullException(nameof(userService));
     this.unitOfWork         = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     this.userTweetService   = userTweetService ?? throw new ArgumentNullException(nameof(userTweetService));
     this.tweetService       = tweetService ?? throw new ArgumentNullException(nameof(tweetService));
     this.userTweeterService = userTweeterService ?? throw new ArgumentNullException(nameof(userTweeterService));
     this.tweeterService     = tweeterService ?? throw new ArgumentNullException(nameof(tweeterService));
 }
 public CascadeDeleteService(
     IUserTweetService userTweetService,
     IUserFolloweeService userFolloweeService,
     IUnitOfWork unitOfWork,
     IFolloweeService followeeService,
     ITweetService tweetService,
     ITweetTagService tweetTagService,
     IAdminUserService userService
     )
 {
     this.userTweetService    = userTweetService ?? throw new ArgumentNullException(nameof(userTweetService));
     this.userFolloweeService = userFolloweeService ?? throw new ArgumentNullException(nameof(userFolloweeService));
     this.unitOfWork          = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     this.followeeService     = followeeService ?? throw new ArgumentNullException(nameof(followeeService));
     this.tweetService        = tweetService ?? throw new ArgumentNullException(nameof(tweetService));
     this.tweetTagService     = tweetTagService ?? throw new ArgumentNullException(nameof(tweetTagService));
     this.userService         = userService ?? throw new ArgumentNullException(nameof(userService));
 }
 public RandomTweetFromUserController(IConfiguration configuration, IUserTweetService userTweet)
 {
     _configuration = configuration;
     _userTweet     = userTweet;
 }
Exemplo n.º 6
0
 public FakeCascadeDeleteService(IUserTweetService userTweetService, IUserFolloweeService userFolloweeService, IUnitOfWork unitOfWork, IFolloweeService followeeService, ITweetService tweetService, ITweetTagService tweetTagService, IAdminUserService userService) : base(userTweetService, userFolloweeService, unitOfWork, followeeService, tweetService, tweetTagService, userService)
 {
 }
Exemplo n.º 7
0
 public FavouriteTweetersController(IUserTweetService userTweetService, UserManager <User> userManager, IAutoMapper autoMapper)
 {
     this.userTweetService = userTweetService;
     this.userManager      = userManager;
     this.autoMapper       = autoMapper;
 }
Exemplo n.º 8
0
 public TwitterUserTweetController(IConfiguration configuration, IUserTweetService userTweet)
 {
     _configuration = configuration;
     _userTweet     = userTweet;
 }