Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public async Task MapToFilterModelCorrectlyForLearners()

foreach (var course in _apiResponse.TrainingCourses)
{
result.FilterModel.Courses.First(t => t.Value == course.CourseCode).Text.Should().Be(course.Name);
result.FilterModel.Courses.First(t => t.Value == course.TrainingCode).Text.Should().Be(course.TrainingName);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public async Task MapToViewModelCorrectly()
result.LastIlrSubmittedOn.Should().Be(_apiResponse.LastSubmissionDate);
result.FutureMonths.Should().Be(_apiResponse.FutureMonths);
result.FilterModel.Courses.Where(c => c.Text != "All").Select(x => x.Text).
Should().BeEquivalentTo(_apiResponse.TrainingCourses.Select(y => y.Name));
Should().BeEquivalentTo(_apiResponse.TrainingCourses.Select(y => y.TrainingName));
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public async Task MapToViewModelCorrectly()
result.LastIlrSubmittedOn.Should().Be(_apiResponse.LastSubmissionDate);
result.FutureMonths.Should().Be(_apiResponse.FutureMonths);
result.FilterModel.Courses.Where(c => c.Text != "All").Select(x => x.Text).
Should().BeEquivalentTo(_apiResponse.TrainingCourses.Select(y => y.Name));
Should().BeEquivalentTo(_apiResponse.TrainingCourses.Select(y => y.TrainingName));
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public async Task<SelectLearnerRecordViewModel> Map(SelectLearnerRecordRequest s
.. response.TrainingCourses
.Select(m => new SelectListItem
{
Text = m.Name,
Value = m.CourseCode
Text = m.TrainingName,
Value = m.TrainingCode
})],
CourseCode = source.CourseCode,
LearningType = source.LearningType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public async Task<SelectMultipleLearnerRecordsViewModel> Map(SelectMultipleLearn
.. response.TrainingCourses
.Select(m => new SelectListItem
{
Text = m.Name,
Value = m.CourseCode
Text = m.TrainingName,
Value = m.TrainingCode
})],
LearningType = cacheItem.LearningType
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Net;
using SFA.DAS.ProviderCommitments.Infrastructure.OuterApi.Responses;

namespace SFA.DAS.ProviderCommitments.Infrastructure.OuterApi.Requests.Ilr;
Expand All @@ -25,7 +26,7 @@ public class GetLearnerDetailsForProviderResponse
public string EmployerName { get; set; }
public List<GetLearnerSummary> Learners { get; set; }
public int FutureMonths { get; set; }
public IEnumerable<TrainingCourse> TrainingCourses { get; set; }
public IEnumerable<Course> TrainingCourses { get; set; }
}

public class GetLearnerSummary
Expand All @@ -37,4 +38,10 @@ public class GetLearnerSummary
public string Course { get; set; }
public DateTime StartDate { get; set; }
public string LearningType { get; set; }
}

public class Course
{
public string TrainingCode { get; set; }
public string TrainingName { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public class GetLearnerSelectedResponse
public DateTime PlannedEndDate { get; set; }
public int EpaoPrice { get; set; }
public int TrainingPrice { get; set; }
public int StandardCode { get; set; }
public string TrainingCode { get; set; }
public string TrainingName { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
Expand Down
Loading