alastairtree / LazyCache

An easy to use thread safe in-memory caching service with a simple developer friendly API for c#
https://nuget.org/packages/LazyCache
MIT License
1.72k stars 159 forks source link

Add Default CacheDefaults for MockCachingService #69

Closed Rudithus closed 5 years ago

Rudithus commented 5 years ago

When used with extension methods provided in AppCacheExtensions, MockCachingService would throw a null reference exception. I've added a default to DefaultCachePolicy to prevent that.

I've also included a few tests to cover this.

alastairtree commented 5 years ago

Awesome! Thank you.