Exemple #1
0
        public void Use_NullDescriptor()
        {
            var builder = new Mock <IDataProtectionBuilder>();

            Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.Use(builder.Object, null));
        }
Exemple #2
0
        public void PersistKeysToRedis_NullConnectionString()
        {
            var builder = new Mock <IDataProtectionBuilder>();

            Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.PersistKeysToRedis(builder.Object, null));
        }
Exemple #3
0
        public void Use_NullBuilder()
        {
            var descriptor = new ServiceDescriptor(typeof(string), "a");

            Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.Use(null, descriptor));
        }
Exemple #4
0
 public void PersistKeysToRedis_NullBuilder()
 {
     Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.PersistKeysToRedis(null, "connection"));
 }