I try to remove data by using the method above
public virtual void ClearOrderTypeCache()
{
orderTypeList = null;
cacheService.Set<OrderTypeProjection[]>(orderTypeCacheKey, null);
}
But I've got an exception when I try to use it
ICacheService.Set<OrderTypeProjection[]>("189b5a92-e728-405a-b13a-e3b62c870845-OrderTypes", null)
invocation failed with mock behavior Strict.
All invocations on the mock must have a corresponding setup.'
I hope this will help.
You are creating a Mock<>, which uses MockBehavior.Strict by default which