public void Should_be_true_when_encryption_key_in_expirede_keys()
        {
            var section = new EncryptionServiceConfig
            {
                Key         = "Key",
                ExpiredKeys = new ExpiredKeyCollection
                {
                    new ExpiredKey {
                        Key = "Key"
                    },
                }
            };

            Assert.IsTrue(EncryptionServiceConfigValidations.EncryptionKeyListedInExpiredKeys(section));
        }
        public void Should_be_false_when_encryption_key_not_in_expired_keys()
        {
            var section = new EncryptionServiceConfig()
            {
                Key         = "Key",
                ExpiredKeys = new ExpiredKeyCollection
                {
                    new ExpiredKey {
                        Key = "AnotherKey"
                    },
                }
            };

            Assert.IsFalse(EncryptionServiceConfigValidations.EncryptionKeyListedInExpiredKeys(section));
        }