Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Merge/AssessmentSectionProvider.cs =================================================================== diff -u -ra5d753e220f0228bd467ca0cfc0fb54a024c1b14 -r7fef5ada51843b4bfd4cfe03d511fb86051c78a7 --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Merge/AssessmentSectionProvider.cs (.../AssessmentSectionProvider.cs) (revision a5d753e220f0228bd467ca0cfc0fb54a024c1b14) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/Merge/AssessmentSectionProvider.cs (.../AssessmentSectionProvider.cs) (revision 7fef5ada51843b4bfd4cfe03d511fb86051c78a7) @@ -22,7 +22,11 @@ using System; using System.Collections.Generic; using System.Windows.Forms; +using Core.Common.Gui.Forms.ProgressDialog; using Ringtoets.Integration.Data; +using Ringtoets.Integration.Data.Merge; +using Ringtoets.Integration.Service.Merge; +using Ringtoets.Storage.Core; namespace Ringtoets.Integration.Plugin.Merge { @@ -32,6 +36,7 @@ public class AssessmentSectionProvider : IAssessmentSectionProvider { private readonly IWin32Window viewParent; + private readonly AssessmentSectionsOwner assessmentSectionsOwner; /// /// Initializes a new instance of . @@ -47,11 +52,27 @@ } this.viewParent = viewParent; + assessmentSectionsOwner = new AssessmentSectionsOwner(); } public IEnumerable GetAssessmentSections(string filePath) { - throw new NotImplementedException(); + if (filePath == null) + { + throw new ArgumentNullException(nameof(filePath)); + } + + ActivityProgressDialogRunner.Run(viewParent, + LoadAssessmentSectionsActivityFactory.CreateLoadAssessmentSectionsActivity( + assessmentSectionsOwner, new LoadAssessmentSectionService(new StorageSqLite()), + filePath)); + + if (assessmentSectionsOwner.AssessmentSections == null) + { + throw new AssessmentSectionProviderException(); + } + + return assessmentSectionsOwner.AssessmentSections; } } } \ No newline at end of file