public ShortUrlService(IUserRepository userRepository, IShortUrlRepository shortUrlRepository, IVisitRepository visitRepository, IBannedDomainRepository bannedDomainRepository, IReservedAliasRepository reservedAliasRepository, IUnitOfWork unitOfWork, IExternalContentService externalContentService, IThumbnail thumbnail, IBaseX baseX, IUrlResolver urlResolver, IEventAggregator eventAggregator, ISpamDetector[] spamDetectors) { Check.Argument.IsNotNull(userRepository, "userRepository"); Check.Argument.IsNotNull(shortUrlRepository, "shortUrlRepository"); Check.Argument.IsNotNull(visitRepository, "visitRepository"); Check.Argument.IsNotNull(bannedDomainRepository, "bannedDomainRepository"); Check.Argument.IsNotNull(reservedAliasRepository, "reservedAliasRepository"); Check.Argument.IsNotNull(unitOfWork, "unitOfWork"); Check.Argument.IsNotNull(externalContentService, "externalContentService"); Check.Argument.IsNotNull(thumbnail, "thumbnail"); Check.Argument.IsNotNull(baseX, "baseX"); Check.Argument.IsNotNull(urlResolver, "urlResolver"); Check.Argument.IsNotNull(eventAggregator, "eventAggregator"); Check.Argument.IsNotNull(spamDetectors, "spamDetectors"); this.userRepository = userRepository; this.shortUrlRepository = shortUrlRepository; this.visitRepository = visitRepository; this.bannedDomainRepository = bannedDomainRepository; this.reservedAliasRepository = reservedAliasRepository; this.unitOfWork = unitOfWork; this.externalContentService = externalContentService; this.thumbnail = thumbnail; this.baseX = baseX; this.urlResolver = urlResolver; this.eventAggregator = eventAggregator; this.spamDetectors = spamDetectors; }
public AdministrativeService(IUserRepository userRepository, IShortUrlRepository shortUrlRepository, IVisitRepository visitRepository, IBannedIPAddressRepository bannedIPAddressRepository, IBannedDomainRepository bannedDomainRepository, IReservedAliasRepository reservedAliasRepository, IBadWordRepository barWordRepository, IUnitOfWork unitOfWork, IUrlResolver urlResolver, ICacheManager cacheManager) { Check.Argument.IsNotNull(userRepository, "userRepository"); Check.Argument.IsNotNull(shortUrlRepository, "shortUrlRepository"); Check.Argument.IsNotNull(visitRepository, "visitRepository"); Check.Argument.IsNotNull(bannedIPAddressRepository, "bannedIPAddressRepository"); Check.Argument.IsNotNull(bannedDomainRepository, "bannedDomainRepository"); Check.Argument.IsNotNull(reservedAliasRepository, "reservedAliasRepository"); Check.Argument.IsNotNull(barWordRepository, "barWordRepository"); Check.Argument.IsNotNull(unitOfWork, "unitOfWork"); Check.Argument.IsNotNull(urlResolver, "urlResolver"); Check.Argument.IsNotNull(cacheManager, "cacheManager"); this.userRepository = userRepository; this.shortUrlRepository = shortUrlRepository; this.visitRepository = visitRepository; this.bannedIPAddressRepository = bannedIPAddressRepository; this.bannedDomainRepository = bannedDomainRepository; this.reservedAliasRepository = reservedAliasRepository; this.barWordRepository = barWordRepository; this.unitOfWork = unitOfWork; this.urlResolver = urlResolver; this.cacheManager = cacheManager; }