Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jarednimble committed Mar 3, 2023
1 parent a1ccf89 commit 1d0326e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -334,17 +334,17 @@ private Status CalculateAboutTheConversionSectionStatus(SchoolApplyingToConvert?
/// <returns></returns>
private Status CalculateFurtherInformationSectionStatus(SchoolApplyingToConvert? selectedSchool, string applicationReference)
{
var dioceseFileNames = _fileUploadService.GetFiles(FileUploadConstants.TopLevelSchoolFolderName, selectedSchool.EntityId.ToString(), applicationReference, FileUploadConstants.DioceseFilePrefixFieldName).Result;
var foundationConsentFileNames = _fileUploadService.GetFiles(FileUploadConstants.TopLevelSchoolFolderName, selectedSchool.EntityId.ToString(), applicationReference, FileUploadConstants.FoundationConsentFilePrefixFieldName).Result;
var resolutionConsentFileNames = _fileUploadService.GetFiles(FileUploadConstants.TopLevelSchoolFolderName, selectedSchool.EntityId.ToString(), applicationReference, FileUploadConstants.ResolutionConsentfilePrefixFieldName).Result;
var dioceseFileNames = _fileUploadService.GetFiles(FileUploadConstants.TopLevelSchoolFolderName, selectedSchool.EntityId.ToString(), applicationReference, FileUploadConstants.DioceseFilePrefixFieldName).Result ?? new();
var foundationConsentFileNames = _fileUploadService.GetFiles(FileUploadConstants.TopLevelSchoolFolderName, selectedSchool.EntityId.ToString(), applicationReference, FileUploadConstants.FoundationConsentFilePrefixFieldName).Result ?? new();
var resolutionConsentFileNames = _fileUploadService.GetFiles(FileUploadConstants.TopLevelSchoolFolderName, selectedSchool.EntityId.ToString(), applicationReference, FileUploadConstants.ResolutionConsentfilePrefixFieldName).Result ?? new();
if (!string.IsNullOrEmpty(selectedSchool?.TrustBenefitDetails) &&
((selectedSchool?.DioceseName == null) == (!dioceseFileNames.Any()) &&
(selectedSchool?.FoundationTrustOrBodyName == null) == (!foundationConsentFileNames.Any())) &&
!resolutionConsentFileNames.Any())
resolutionConsentFileNames.Any())
return Status.Completed;

if (!string.IsNullOrEmpty(selectedSchool?.TrustBenefitDetails) ||
!resolutionConsentFileNames.Any())
resolutionConsentFileNames.Any())
return Status.InProgress;

return Status.NotStarted;
Expand Down

0 comments on commit 1d0326e

Please sign in to comment.