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 TweeterController(ITweeterService tweeterService) { _tweeterService = tweeterService; }
public UserTweeterService(IUnitOfWork unitOfWork, ITweeterService tweeterService) { this.unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); this.tweeterService = tweeterService ?? throw new ArgumentNullException(nameof(tweeterService)); }