stefanprodan / WebApiThrottle

ASP.NET Web API rate limiter for IIS and Owin hosting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit test api calls fails

RLinev opened this issue · comments

Every api call created from the unit tests throws
{"{"message":"An error has occurred.","exceptionMessage":"Object reference not set to an instance of an object.","exceptionType":"System.NullReferenceException","stackTrace":" at WebApiThrottle.CacheRepository.FirstOrDefault(String id)\r\n at WebApiThrottle.ThrottlingCore.ProcessRequest(TimeSpan timeSpan, String id)\r\n at WebApiThrottle.ThrottlingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Net.Http.DelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)\r\n at System.Web.Http.HttpServer.d__0.MoveNext()"}"}