public async Task adding_client_should_set_item_in_cookie_properties() { _stubAuthHandler.User = _user; _stubAuthHandler.Properties.Count.Should().Be(0); await _subject.AddClientIdAsync("client"); _stubAuthHandler.Properties.Count.Should().Be(1); }
public async Task adding_client_should_set_item_in_cookie_properties() { _mockAuthenticationHandler.Result = AuthenticateResult.Success(new AuthenticationTicket(_user, _props, "scheme")); _props.Items.Count.Should().Be(0); await _subject.AddClientIdAsync("client"); _props.Items.Count.Should().Be(1); }
public async Task adding_client_should_set_item_in_cookie_properties() { _mockHttpContext.SetUser(_user, _props); _props.Items.Count.Should().Be(0); await _subject.AddClientIdAsync("client"); _props.Items.Count.Should().Be(1); }