public Base62ByIdLinksShortener(ILinksIdGenerator linksIdGenerator, IUrlValidator urlValidator) { _LinksIdGenerator = linksIdGenerator ?? throw new ArgumentNullException(nameof(linksIdGenerator)); _UrlValidator = urlValidator; }
public CachingLinksGenerator(IMemoryCache cache, ILinksIdGenerator realGenerator) { _Cache = cache; _RealGenerator = realGenerator ?? throw new ArgumentNullException(nameof(realGenerator)); }