public void SetAutofacLifetimeScopeThrowsWhenProvidedNullScopeInstance()
        {
            var exception = Assert.Throws <ArgumentNullException>(() => OwinContextExtensions.SetAutofacLifetimeScope(new OwinContext(), null));

            Assert.Equal("scope", exception.ParamName);
        }
        public void SetAutofacLifetimeScopeThrowsWhenProvidedNullContextInstance()
        {
            var exception = Assert.Throws <ArgumentNullException>(() => OwinContextExtensions.SetAutofacLifetimeScope(null, new Mock <ILifetimeScope>().Object));

            Assert.Equal("context", exception.ParamName);
        }