public async Task GetCurrentSessionIdAsync_when_user_is_authenticated_should_return_sid() { _stubAuthHandler.User = _user; _stubAuthHandler.Properties.Add(DefaultUserSession.SessionIdKey, "999"); var sid = await _subject.GetCurrentSessionIdAsync(); sid.Should().Be("999"); }
public async Task GetCurrentSessionIdAsync_when_user_is_authenticated_should_return_sid() { _props.Items.Add(DefaultUserSession.SessionIdKey, "999"); _mockHttpContext.SetUser(_user, _props); var sid = await _subject.GetCurrentSessionIdAsync(); sid.Should().Be("999"); }