public async Task WhenNavigatingToTheHasSignInPage_ThenTheARedirectToYourDetailsIsReturned() { SessionService.Get(Arg.Is("TempSupportRequestId")).Returns(REQUEST_ID.ToString()); var actual = await sut.Index(); actual.Should().BeOfType <RedirectToActionResult>(); }
public async Task WhenTheNoDfeSignInOptionIsSelected_ThenUserIsRedirectedToYourDetailsPage() { SessionService.Get(Arg.Is("TempSupportRequestId")).Returns(REQUEST_ID.ToString()); var actual = await sut.Index(new HasSignInViewModel() { HasSignInAccount = false }); var redirectResult = actual as RedirectToActionResult; Assert.AreEqual("YourDetails", redirectResult.ControllerName); Assert.AreEqual("Index", redirectResult.ActionName); }