diff --git a/ReportAPI/LearningHub.Nhs.ReportApi.Services.UnitTests/PdfReportServicesTests.cs b/ReportAPI/LearningHub.Nhs.ReportApi.Services.UnitTests/PdfReportServicesTests.cs index a333c4358..73ebbf55c 100644 --- a/ReportAPI/LearningHub.Nhs.ReportApi.Services.UnitTests/PdfReportServicesTests.cs +++ b/ReportAPI/LearningHub.Nhs.ReportApi.Services.UnitTests/PdfReportServicesTests.cs @@ -388,6 +388,8 @@ private IMapper NewMapper() { var mappingConfig = new MapperConfiguration(mc => { + mc.AllowNullCollections = true; + mc.ShouldMapMethod = m => false; mc.AddProfile(new MappingProfile()); }); IMapper mapper = mappingConfig.CreateMapper();