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