public OwinRequestScopeContextFixture() { _owinEnvironment = new Dictionary <string, object> { { "the meaning of life, the universe, and everything", 42 } }; _items = A.Fake <IInternalOwinRequestScopeContextItems>(); _sut = new OwinRequestScopeContext(_owinEnvironment, _items, OwinRequestScopeContextOptions.Default); }
internal OwinRequestScopeContext( IDictionary <string, object> owinEnvironment, IOwinRequestScopeContextItems items, OwinRequestScopeContextOptions options) { if (items == null) { throw new ArgumentNullException(nameof(items)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } Items = items; Options = options; OwinEnvironment = new ReadOnlyDictionary <string, object>(owinEnvironment); }