public void ThenIShouldBeToldIfTheUserCanStillSeeTheUserWizard() { //Arrange const string userId = "123"; const string hashedAccountId = "ABC123"; const string hashedAgreementId = "DGF6756"; _owinWrapper.Setup(x => x.GetClaimValue(@"sub")).Returns(userId); _orchestrator.Setup(x => x.GetOrganisationAddedNextStepViewModel(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>())) .ReturnsAsync(new OrchestratorResponse <OrganisationAddedNextStepsViewModel> { Data = new OrganisationAddedNextStepsViewModel { ShowWizard = true } }); //Act var result = _controller.OrganisationAddedNextSteps("test", hashedAccountId, hashedAgreementId).Result as ViewResult; var model = result?.Model as OrchestratorResponse <OrganisationAddedNextStepsViewModel>; //Assert Assert.IsNotNull(model); Assert.IsTrue(model.Data.ShowWizard); _orchestrator.Verify(x => x.GetOrganisationAddedNextStepViewModel(It.IsAny <string>(), userId, hashedAccountId, hashedAgreementId), Times.Once); }