Index: Ringtoets/Common/src/Ringtoets.Common.Data/UpdateDataStrategies/ReplaceDataStrategyBase.cs
===================================================================
diff -u -ra940166534b3dd6e778de2e7c8e7e5241f3d3381 -r9540d67453c6a1caf5833d64ab651660dce11595
--- Ringtoets/Common/src/Ringtoets.Common.Data/UpdateDataStrategies/ReplaceDataStrategyBase.cs (.../ReplaceDataStrategyBase.cs) (revision a940166534b3dd6e778de2e7c8e7e5241f3d3381)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/UpdateDataStrategies/ReplaceDataStrategyBase.cs (.../ReplaceDataStrategyBase.cs) (revision 9540d67453c6a1caf5833d64ab651660dce11595)
@@ -32,20 +32,19 @@
/// target collection with the data that was imported.
///
/// The target data type.
- /// The failure mechanism in which the target collection should be updated.
+ /// The type of the failure mechanism in which the target collection should be updated.
public abstract class ReplaceDataStrategyBase
where TTargetData : class
where TFailureMechanism : IFailureMechanism
{
- protected readonly TFailureMechanism FailureMechanism;
private readonly ObservableUniqueItemCollectionWithSourcePath targetCollection;
///
- /// Initializes a
+ /// Initializes a .
///
/// The failure mechanism in which the target collection should be updated.
/// The collection that needs to be updated.
- /// Thrown when is null
+ /// Thrown when is null.
protected ReplaceDataStrategyBase(TFailureMechanism failureMechanism, ObservableUniqueItemCollectionWithSourcePath targetCollection)
{
if (failureMechanism == null)
@@ -58,10 +57,15 @@
}
///
+ /// Gets the failure mechanism.
+ ///
+ protected TFailureMechanism FailureMechanism { get; }
+
+ ///
/// Clears all the dependent data of the target items that are within the failure mechanism.
///
- /// A with all the items that are affected within the failure mechanism
- /// after clearing all the within the target collection.
+ /// An with all the items that are affected within the failure mechanism
+ /// after clearing all the data within the target collection.
protected abstract IEnumerable ClearData();
///
@@ -70,10 +74,10 @@
/// The data that was imported.
/// The source file path where the imported data comes from.
/// An with affected objects.
- /// Thrown when any of the input parameters are null.
+ /// Thrown when any of the input parameters is null.
/// Thrown when replacing the data has failed.
protected IEnumerable ReplaceTargetCollectionWithImportedData(IEnumerable importedDataCollection,
- string sourceFilePath)
+ string sourceFilePath)
{
if (importedDataCollection == null)
{
@@ -92,7 +96,7 @@
}
///
- /// Adds read data from the to the .
+ /// Adds imported data from the to the .
///
/// The data that was imported.
/// The source file path where the imported data comes from.