public void CachedLifetimeExtensionMethodThrowsExceptionIfPolicyParameterIsNull() { var container = new IocContainer(); var reg = new ExpressionRegistration <IFoo>(container, resolver => new Foo1(), new TransientLifetime()); LifetimeRegistrationExtensions.WithCachedLifetime(reg, null); }
public void SessionLifetimeExtensionMethodThrowsExceptionIfParameterIsNull() { LifetimeRegistrationExtensions.WithSessionLifetime <ILifetimeRegistration>(null); }
public void CachedLifetimeExtensionMethodThrowsExceptionIfRegistrationParameterIsNull() { var policy = new CacheItemPolicy(); LifetimeRegistrationExtensions.WithCachedLifetime <ILifetimeRegistration>(null, policy); }
public void SetLifetimeExtensionMethodThrowsExceptionIfParameterIsNull() { LifetimeRegistrationExtensions.SetLifetime <ILifetimeRegistration>(null, new TransientLifetime()); }