using System; using Core.Common.Base.Service; using Ringtoets.Integration.Data; using Ringtoets.Integration.Data.Merge; namespace Ringtoets.Integration.Service.Merge { /// /// This class defines factory methods that can be used to create instance of /// to load . /// public static class LoadAssessmentSectionsActivityFactory { /// /// Creates an activity to load collections of from a file. /// /// The owner to set the retrieved collection /// of on. /// The provider defining how to /// retrieve the collection of from a file. /// The file path to retrieve the collection of /// from. /// The to load from a file. /// Thrown when any of the arguments is null. public static Activity CreateLoadAssessmentSectionsActivity(AssessmentSectionsOwner owner, IAssessmentSectionProvider assessmentSectionProvider, string filePath) { if (owner == null) { throw new ArgumentNullException(nameof(owner)); } if (assessmentSectionProvider == null) { throw new ArgumentNullException(nameof(assessmentSectionProvider)); } if (filePath == null) { throw new ArgumentNullException(nameof(filePath)); } return new LoadAssessmentSectionsActivity(owner, assessmentSectionProvider, filePath); } } }