Skip to content

Commit

Permalink
Updated inset text and published date
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Howes committed Jan 15, 2021
1 parent 2d469f5 commit f4c943a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ IF (NOT EXISTS (SELECT 1 FROM [employer_account].[EmployerAgreementTemplate] WHE
BEGIN
SET IDENTITY_INSERT [employer_account].[EmployerAgreementTemplate] ON
INSERT INTO [employer_account].[EmployerAgreementTemplate] (Id, PartialViewName, VersionNumber, AgreementType, CreatedDate, PublishedDate)
VALUES (6, '_Agreement_V5', 5, 2, GETDATE(), Convert(DateTime,'2021-2-1'))
VALUES (6, '_Agreement_V5', 5, 2, GETDATE(), Convert(DateTime,'2021-1-20'))
SET IDENTITY_INSERT [employer_account].[EmployerAgreementTemplate] OFF
END
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public void InsetTextSetCorrectlyForPreviouslySignedv2Agreements(int agreementVe
[TestCase(2, "This is a variation of the agreement that we published 1 May 2017. We updated it to add clause 7 (transfer of funding).")]
[TestCase(3, "This is a new agreement.")]
[TestCase(4, "This is a variation to the agreement we published 9 January 2020. You only need to accept it if you want to access incentive payments for hiring a new apprentice.")]
[TestCase(5, "This is a variation to the agreement we published 9 January 2020. You only need to accept it if you want to access incentive payments for hiring a new apprentice.")]
[TestCase(5, "This is a variation to the agreement we published 9 January 2020.")]
public void InsetTextSetCorrectlyForPreviouslySignedv3Agreements(int agreementVersion, string expectedResult)
{
var model = new AgreementTemplateViewModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ public static string InsetText(this AgreementTemplateViewModel agreementTemplate
case 3:
return "This is a new agreement.";
case 4:
case 5:
return HasSignedVariationOfv3Agreement(organisationAgreementViewModel) ? "This is a variation to the agreement we published 9 January 2020. You only need to accept it if you want to access incentive payments for hiring a new apprentice." : "This is a new agreement.";
case 5:
return HasSignedVariationOfv3Agreement(organisationAgreementViewModel) ? "This is a variation to the agreement we published 9 January 2020." : "This is a new agreement.";
default:
return string.Empty;
}
Expand Down

0 comments on commit f4c943a

Please sign in to comment.