public void MergeAction(RedisPubSubCacheMessage <int> existingMessage, RedisPubSubCacheMessage <int> newMessage,
                                RedisPubSubCacheMessage <int> expectedMergedMessage)
        {
            RedisPubSubCacheHelpers.MergeAction(existingMessage, newMessage);

            Assert.That(existingMessage, Is.EqualTo(expectedMergedMessage));
        }
Beispiel #2
0
        public void Ctor()
        {
            RedisPubSubCacheMessage <int>       message;
            const RedisPubSubCacheMessageAction action = RedisPubSubCacheMessageAction.Remove;

            int[] keys = new[] { 1, 2 };

            message = new RedisPubSubCacheMessage <int>(action, keys);
            Assert.That(message, Has.Property("Action").EqualTo(action));
            Assert.That(message, Has.Property("Keys").EqualTo(keys));
        }