static PubSubCacheController() { var connection = ConnectionMultiplexer.Connect("localhost"); var serializer = new MsgPackItemSerializer(); _pubSubCache = CacheFactory.CreatePubSubDoubleCache(connection, serializer); }
public void CreatePubSubDoubleCache_ReturnsCacheObject() { var connection = A.Fake <IConnectionMultiplexer>(); var serializer = A.Fake <IItemSerializer>(); var cache = CacheFactory.CreatePubSubDoubleCache(connection, serializer); cache.ShouldBeOfType <DoubleCache.DoubleCache>(); }