예제 #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));
 }
 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));
 }
예제 #3
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)
 {
 }
 public UserFolloweeService(IUnitOfWork unitOfWork, IFolloweeService followeeService, IDateTimeProvider dateTimeProvider)
 {
     this.unitOfWork       = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     this.followeeService  = followeeService ?? throw new ArgumentNullException(nameof(followeeService));
     this.dateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider));
 }
예제 #5
0
 public FakeUserFolloweeService(IUnitOfWork unitOfWork, IFolloweeService followeeService, IDateTimeProvider dateTimeProvider) : base(unitOfWork, followeeService, dateTimeProvider)
 {
 }