public void Use_NullDescriptor() { var builder = new Mock <IDataProtectionBuilder>(); Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.Use(builder.Object, null)); }
public void PersistKeysToRedis_NullConnectionString() { var builder = new Mock <IDataProtectionBuilder>(); Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.PersistKeysToRedis(builder.Object, null)); }
public void Use_NullBuilder() { var descriptor = new ServiceDescriptor(typeof(string), "a"); Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.Use(null, descriptor)); }
public void PersistKeysToRedis_NullBuilder() { Assert.Throws <ArgumentNullException>(() => DataProtectionBuilderExtensions.PersistKeysToRedis(null, "connection")); }