public void CachedLifetimeExtensionMethodThrowsExceptionIfPolicyParameterIsNull()
        {
            var container = new IocContainer();
            var reg       = new ExpressionRegistration <IFoo>(container, resolver => new Foo1(), new TransientLifetime());

            LifetimeRegistrationExtensions.WithCachedLifetime(reg, null);
        }
        public void CachedLifetimeExtensionMethodThrowsExceptionIfRegistrationParameterIsNull()
        {
            var policy = new CacheItemPolicy();

            LifetimeRegistrationExtensions.WithCachedLifetime <ILifetimeRegistration>(null, policy);
        }