Skip to content

Commit

Permalink
Follow the coding standard convention
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzal authored and mareg committed Sep 23, 2024
1 parent 305ad1a commit 2e5d2bf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Services/CO.CDP.DataSharing.WebApi.Tests/EntityFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ namespace CO.CDP.DataSharing.WebApi.Tests;

internal static class EntityFactory
{
private static int nextQuestionNumber = 0;
private static int _nextQuestionNumber;

private static int getQuestionNumber()
private static int GetQuestionNumber()
{
Interlocked.Increment(ref nextQuestionNumber);
Interlocked.Increment(ref _nextQuestionNumber);

return nextQuestionNumber;
return _nextQuestionNumber;
}

internal static ShareRequest GetShareRequest(Guid organisationGuid, Guid formId)
Expand Down Expand Up @@ -280,7 +280,7 @@ private static PersistenceForms.FormSection GivenSection(Guid sectionId, Persist
Id = 1,
Guid = Guid.NewGuid(),
Caption = "Page caption",
Name = "_Section0" + getQuestionNumber(),
Name = "_Section0" + GetQuestionNumber(),
Title = "The financial information you will need.",
Description = "You will need to upload accounts or statements for your 2 most recent financial years. If you do not have 2 years, you can upload your most recent financial year. You will need to enter the financial year end date for the information you upload.",
Type = PersistenceForms.FormQuestionType.NoInput,
Expand All @@ -297,7 +297,7 @@ private static PersistenceForms.FormSection GivenSection(Guid sectionId, Persist
Id = 2,
Guid = Guid.NewGuid(),
Caption = "Page caption",
Name = "_Section0" + getQuestionNumber(),
Name = "_Section0" + GetQuestionNumber(),
Title = "Were your accounts audited?",
Description = String.Empty,
Type = PersistenceForms.FormQuestionType.YesOrNo,
Expand All @@ -314,7 +314,7 @@ private static PersistenceForms.FormSection GivenSection(Guid sectionId, Persist
Id = 2,
Guid = Guid.NewGuid(),
Caption = "Page caption",
Name = "_Section0" + getQuestionNumber(),
Name = "_Section0" + GetQuestionNumber(),
Title = "Upload your accounts",
Description = "Upload your most recent 2 financial years. If you do not have 2, upload your most recent financial year.",
Type = PersistenceForms.FormQuestionType.FileUpload,
Expand All @@ -331,7 +331,7 @@ private static PersistenceForms.FormSection GivenSection(Guid sectionId, Persist
Id = 3,
Guid = Guid.NewGuid(),
Caption = "Page caption",
Name = "_Section0" + getQuestionNumber(),
Name = "_Section0" + GetQuestionNumber(),
Title = "What is the financial year end date for the information you uploaded?",
Description = String.Empty,
Type = PersistenceForms.FormQuestionType.Date,
Expand All @@ -348,7 +348,7 @@ private static PersistenceForms.FormSection GivenSection(Guid sectionId, Persist
Id = 4,
Guid = Guid.NewGuid(),
Caption = "Page caption",
Name = "_Section0" + getQuestionNumber(),
Name = "_Section0" + GetQuestionNumber(),
Title = "Check your answers",
Type = PersistenceForms.FormQuestionType.CheckYourAnswers,
Description = String.Empty,
Expand All @@ -365,7 +365,7 @@ private static PersistenceForms.FormSection GivenSection(Guid sectionId, Persist
Id = 5,
Guid = Guid.NewGuid(),
Caption = "Page caption",
Name = "_Section0" + getQuestionNumber(),
Name = "_Section0" + GetQuestionNumber(),
Title = "Enter your postal address",
Description = String.Empty,
Type = PersistenceForms.FormQuestionType.Address,
Expand Down

0 comments on commit 2e5d2bf

Please sign in to comment.