public RateLimiterTest() { _identityService = new Mock <IIdentityService>(); _resourceRepository = new Mock <IResourceRepository>(); _dateTimeService = new DateTimeService(); _limitProvider = new SlidingWindowWithInterval(); _limitRuleFilter = new GeoLocationRuleFilter(); }
public RequestLimitService(ITokenBucket tokenBucket, IResourceRepository resourceRepository, ILimitRuleFilter limitRuleFilter) { _tokenBucket = tokenBucket; _resourceRepository = resourceRepository; _limitRuleFilter = limitRuleFilter; }