コード例 #1
0
 public FolloweeController(IFolloweeService followeeService,
                           ITwitterApiCallService twitterApiCallService, IUserFolloweeService userFolloweeService,
                           UserManager <User> manager, ICascadeDeleteService cascadeDeleteService)
 {
     this.followeeService       = followeeService ?? throw new ArgumentNullException(nameof(followeeService));
     this.twitterApiCallService = twitterApiCallService ?? throw new ArgumentNullException(nameof(twitterApiCallService));
     this.userFolloweeService   = userFolloweeService ?? throw new ArgumentNullException(nameof(userFolloweeService));
     this.manager = manager ?? throw new ArgumentNullException(nameof(manager));
     this.cascadeDeleteService = cascadeDeleteService ?? throw new ArgumentNullException(nameof(cascadeDeleteService));
 }
コード例 #2
0
 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)
 {
 }