Base:
property
Session
Microsoft.AspNetCore.Http.HttpContext.Session
2 writes to Session
Microsoft.AspNetCore.Http.Tests (2)
DefaultHttpContextTests.cs (2)
53context.Session = session; 72context.Session = new TestSession();
7 references to Session
Microsoft.AspNetCore.Http.Tests (7)
DefaultHttpContextTests.cs (7)
23var exception = Assert.Throws<InvalidOperationException>(() => context.Session); 40Assert.Same(session, context.Session); 41context.Session.Set("key3", null); 42Assert.Equal(3, context.Session.Keys.Count()); 56Assert.Same(session, context.Session); 75Assert.NotSame(session, context.Session); 76Assert.Empty(context.Session.Keys);