diff --git a/src/SFA.DAS.EmployerAccounts.Web.UnitTests/Orchestrators/EmployerTeamOrchestratorTests/WhenGettingCallToActionViewName.cs b/src/SFA.DAS.EmployerAccounts.Web.UnitTests/Orchestrators/EmployerTeamOrchestratorTests/WhenGettingCallToActionViewName.cs index 795e3cee9c..218acae85b 100644 --- a/src/SFA.DAS.EmployerAccounts.Web.UnitTests/Orchestrators/EmployerTeamOrchestratorTests/WhenGettingCallToActionViewName.cs +++ b/src/SFA.DAS.EmployerAccounts.Web.UnitTests/Orchestrators/EmployerTeamOrchestratorTests/WhenGettingCallToActionViewName.cs @@ -138,5 +138,24 @@ public void WhenLevy_IgnoreCallToActionRules( //Assert panelViewModel.ViewName.Should().BeNullOrEmpty(); } + + [Test, RecursiveMoqAutoData] + public void WhenNoSetup_ThenShouldGetCheckFundingViewName( + [NonLevyPanelView] PanelViewModel panelViewModel, + EmployerTeamOrchestrator sut) + { + // Arrange + panelViewModel.Data.CallToActionViewModel.Cohorts = new List(); + panelViewModel.Data.CallToActionViewModel.Apprenticeships = new List(); + panelViewModel.Data.CallToActionViewModel.Reservations = new List(); + panelViewModel.Data.CallToActionViewModel.VacanciesViewModel = new VacanciesViewModel(); + panelViewModel.Data.PendingAgreements.Clear(); + + // Act + sut.GetCallToActionViewName(panelViewModel); + + //Assert + panelViewModel.ViewName.Should().Be("CheckFunding"); + } } }