Exemplo n.º 1
0
        public void Append()
        {
            _cache.Store("key", 123, Encoding.ASCII.GetBytes("12345"), new DateTime(1999, 1, 1));
            _cache.Append("key", 123, new DateTime(1999, 1, 1), Encoding.ASCII.GetBytes("12345"), false);

            Assert.AreEqual(2, _testObserver.Messages.Count);
            var storeNotification1 = GetNotification();

            Assert.IsInstanceOfType(storeNotification1, typeof(StoreNotification));
            var storeNotification2 = GetNotification();

            Assert.IsInstanceOfType(storeNotification2, typeof(StoreNotification));
        }