public async Task Then_the_caller_is_redirected_to_home_if_the_user_has_an_account_claim() { // arrange var claimValue = Guid.NewGuid().ToString(); _claimsIdentity.AddClaim(new Claim(EmployerClaimTypes.Account, claimValue)); // act var result = await _sut.Login() as RedirectToActionResult; // assert result.ActionName.Should().Be("Home"); result.RouteValues.ContainsKey("accountId"); result.RouteValues["accountId"].Should().Be(claimValue); }