public PerfomanceTwoLayerFakeCacheTest()
 {
     FakeCacheImpl cacheLayer1 = new FakeCacheImpl();
     FakeCacheImpl cacheLayer2 = new FakeCacheImpl();
     FakeMessageBus messageBus = new FakeMessageBus();
     _testCache = new TwoLayerCacheImpl(cacheLayer1, cacheLayer2, messageBus);
 }
 public void SetUp()
 {
     _cacheLayer1 = new FakeCacheImpl();
     _cacheLayer2 = new FakeCacheImpl();
     _messageBus = new FakeMessageBus();
     _testCache = new TwoLayerCacheImpl(_cacheLayer1, _cacheLayer2, _messageBus);
 }
        public void TearDown()
        {
            _testCache.Dispose();
            _messageBus.Dispose();
            _cacheLayer1.Dispose();
            _cacheLayer2.Dispose();

            _testCache = null;
            _messageBus = null;
            _cacheLayer1 = null;
            _cacheLayer2 = null;
        }
Ejemplo n.º 4
0
 public void SetUp()
 {
     _layer1 = new FakeCacheImpl();
     _layer2 = new FakeCacheImpl();
     _messageBus = new FakeMessageBus();
     _twoLayerCache = new TwoLayerCacheImpl(_layer1, _layer2, _messageBus);
 }