Esempio n. 1
0
        public TweetService(IMappingProvider mapper, IUnitOfWork unitOfWork, ITwitterApiCallService twitterApiCallService, ITweetTagService tweetTagService, ITagService tagService, IDateTimeParser dateTimeParser)
        {
            if (mapper == null || unitOfWork == null || twitterApiCallService == null ||
                tweetTagService == null || tagService == null || dateTimeParser == null)
            {
                throw new ArgumentNullException();
            }

            this.mapper                = mapper;
            this.unitOfWork            = unitOfWork;
            this.twitterApiCallService = twitterApiCallService;
            this.tweetTagService       = tweetTagService;
            this.tagService            = tagService;
            this.dateTimeParser        = dateTimeParser;
        }
 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));
 }
Esempio n. 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)
 {
 }