Skip to content

Commit

Permalink
CON-1619-clean -up-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephek committed Apr 7, 2020
1 parent 6e5e077 commit 280eb41
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 156 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using SFA.DAS.EmployerAccounts.Web.Orchestrators;
using SFA.DAS.EmployerAccounts.Web.ViewModels;

namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests.WhenHomePageToggleIsEnabled
namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests
{
public class WhenAgreementToSign
{
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
using System.Web.Mvc;
using System.Collections.Generic;
using System.Web.Mvc;
using Moq;
using NUnit.Framework;
using SFA.DAS.Authentication;
using SFA.DAS.EmployerAccounts.Interfaces;
using SFA.DAS.EmployerAccounts.Models.Reservations;
using SFA.DAS.EmployerAccounts.Web.Controllers;
using SFA.DAS.EmployerAccounts.Web.Orchestrators;
using SFA.DAS.EmployerAccounts.Web.ViewModels;

namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests.WhenHomePageToggleIsEnabled
namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests
{
public class WhenFundsToReserve
{
Expand Down Expand Up @@ -54,6 +56,7 @@ public void ThenForNonLevyTheCheckFundingViewIsReturnedAtRow1Panel1()
//Assert
Assert.IsNotNull(result);
Assert.AreEqual("CheckFunding", (result.Model as dynamic).ViewName);
Assert.AreEqual(PanelType.Action, (result.Model as dynamic).PanelType);
}

[Test]
Expand All @@ -78,5 +81,31 @@ public void ThenForLevyTheEmptyViewIsReturnedAtRow1Panel1()
Assert.IsNotNull(result);
Assert.AreEqual("Empty", (result.Model as dynamic).ViewName);
}

[Test]
public void ThenForNonLevyTheContinueSetupForSingleReservationViewIsReturnedAtRow1Panel1()
{
// Arrange
var model = new AccountDashboardViewModel
{
PayeSchemeCount = 1,
CallToActionViewModel = new CallToActionViewModel
{
AgreementsToSign = false,
Reservations = new List<Reservation> { new Reservation { Status = ReservationStatus.Pending } },
VacanciesViewModel = new VacanciesViewModel()
},

ApprenticeshipEmployerType = Common.Domain.Types.ApprenticeshipEmployerType.NonLevy
};

//Act
var result = _controller.Row1Panel1(model) as PartialViewResult;

//Assert
Assert.IsNotNull(result);
Assert.AreEqual("ContinueSetupForSingleReservation", (result.Model as dynamic).ViewName);
Assert.AreEqual(PanelType.Summary, (result.Model as dynamic).PanelType);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using SFA.DAS.EmployerAccounts.Web.Orchestrators;
using SFA.DAS.EmployerAccounts.Web.ViewModels;

namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests.WhenHomePageToggleIsEnabled
namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests
{
public class WhenNoPayeScheme
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using SFA.DAS.EmployerAccounts.Web.Orchestrators;
using SFA.DAS.EmployerAccounts.Web.ViewModels;

namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests.WhenCallToActionToggleIsEnabled
namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests
{
public class WhenSetupSingleApprentice
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using SFA.DAS.EmployerAccounts.Web.Orchestrators;
using SFA.DAS.EmployerAccounts.Web.ViewModels;

namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests.WhenCallToActionToggleIsEnabled
namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests
{
public class WhenSetupSingleApprenticeByProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using SFA.DAS.EmployerAccounts.Web.Orchestrators;
using SFA.DAS.EmployerAccounts.Web.ViewModels;

namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests.WhenCallToActionToggleIsEnabled
namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests
{
public class WhenSetupSingleApprenticeStatus
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using SFA.DAS.EmployerAccounts.Web.Orchestrators;
using SFA.DAS.EmployerAccounts.Web.ViewModels;

namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests.WhenCallToActionToggleIsEnabled
namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests
{
public class WhenSetupSingleReservation
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
using SFA.DAS.EmployerAccounts.Web.ViewModels;
using SFA.DAS.EmployerAccounts.Models.Account;

namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests.WhenHomePageToggleIsEnabled
namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests
{
public class WhenSupportUserBannerIsRendered
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using SFA.DAS.EmployerAccounts.Web.Orchestrators;
using SFA.DAS.EmployerAccounts.Web.ViewModels;

namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests.WhenHomePageToggleIsEnabled
namespace SFA.DAS.EmployerAccounts.Web.UnitTests.Controllers.EmployerTeamControllerTests
{
public class WhenVacancyInProgress
{
Expand Down

0 comments on commit 280eb41

Please sign in to comment.