Skip to content

Commit

Permalink
test no setup sign post to reserve funding
Browse files Browse the repository at this point in the history
  • Loading branch information
cofaulco committed Jul 5, 2022
1 parent ca5ca90 commit 9b69041
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,24 @@ public void WhenLevy_IgnoreCallToActionRules(
//Assert
panelViewModel.ViewName.Should().BeNullOrEmpty();
}

[Test, RecursiveMoqAutoData]
public void WhenNoSetup_ThenShouldGetCheckFundingViewName(
[NonLevyPanelView] PanelViewModel<AccountDashboardViewModel> panelViewModel,
EmployerTeamOrchestrator sut)
{
// Arrange
panelViewModel.Data.CallToActionViewModel.Cohorts = new List<CohortViewModel>();
panelViewModel.Data.CallToActionViewModel.Apprenticeships = new List<ApprenticeshipViewModel>();
panelViewModel.Data.CallToActionViewModel.Reservations = new List<Reservation>();
panelViewModel.Data.CallToActionViewModel.VacanciesViewModel = new VacanciesViewModel();
panelViewModel.Data.PendingAgreements.Clear();

// Act
sut.GetCallToActionViewName(panelViewModel);

//Assert
panelViewModel.ViewName.Should().Be("CheckFunding");
}
}
}

0 comments on commit 9b69041

Please sign in to comment.