Index: Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/HydraulicBoundaryLocationCalculationsProperties.cs =================================================================== diff -u -r46813455904b4f3292777b0e05458bbf3640d1a8 -r934f5e201c55b7bf13f970ec2d2e1eca635006f6 --- Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/HydraulicBoundaryLocationCalculationsProperties.cs (.../HydraulicBoundaryLocationCalculationsProperties.cs) (revision 46813455904b4f3292777b0e05458bbf3640d1a8) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/PropertyClasses/HydraulicBoundaryLocationCalculationsProperties.cs (.../HydraulicBoundaryLocationCalculationsProperties.cs) (revision 934f5e201c55b7bf13f970ec2d2e1eca635006f6) @@ -29,23 +29,23 @@ /// /// ViewModel of an enumeration of for properties panel. /// - public abstract class HydraulicBoundaryLocationCalculationsProperties : ObjectProperties>, IDisposable + public abstract class HydraulicBoundaryLocationCalculationsProperties : ObjectProperties>, IDisposable { - private readonly RecursiveObserver, HydraulicBoundaryLocationCalculation> hydraulicBoundaryLocationCalculationsObserver; + private readonly RecursiveObserver, HydraulicBoundaryLocationCalculation> hydraulicBoundaryLocationCalculationsObserver; /// /// Creates a new instance of . /// - /// The list of hydraulic boundary location calculations to set as data. + /// The enumeration of hydraulic boundary location calculations to set as data. /// Thrown when is null. - protected HydraulicBoundaryLocationCalculationsProperties(ObservableList hydraulicBoundaryLocationCalculations) + protected HydraulicBoundaryLocationCalculationsProperties(IObservableEnumerable hydraulicBoundaryLocationCalculations) { if (hydraulicBoundaryLocationCalculations == null) { throw new ArgumentNullException(nameof(hydraulicBoundaryLocationCalculations)); } - hydraulicBoundaryLocationCalculationsObserver = new RecursiveObserver, HydraulicBoundaryLocationCalculation>(OnRefreshRequired, list => list) + hydraulicBoundaryLocationCalculationsObserver = new RecursiveObserver, HydraulicBoundaryLocationCalculation>(OnRefreshRequired, hblc => hblc) { Observable = hydraulicBoundaryLocationCalculations }; Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/HydraulicBoundaryLocationCalculationsPropertiesTest.cs =================================================================== diff -u -r46813455904b4f3292777b0e05458bbf3640d1a8 -r934f5e201c55b7bf13f970ec2d2e1eca635006f6 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/HydraulicBoundaryLocationCalculationsPropertiesTest.cs (.../HydraulicBoundaryLocationCalculationsPropertiesTest.cs) (revision 46813455904b4f3292777b0e05458bbf3640d1a8) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/HydraulicBoundaryLocationCalculationsPropertiesTest.cs (.../HydraulicBoundaryLocationCalculationsPropertiesTest.cs) (revision 934f5e201c55b7bf13f970ec2d2e1eca635006f6) @@ -53,7 +53,7 @@ using (var properties = new TestHydraulicBoundaryLocationCalculationsProperties(hydraulicBoundaryLocationCalculations)) { // Assert - Assert.IsInstanceOf>>(properties); + Assert.IsInstanceOf>>(properties); Assert.IsInstanceOf(properties); Assert.AreSame(hydraulicBoundaryLocationCalculations, properties.Data); } @@ -109,7 +109,7 @@ private class TestHydraulicBoundaryLocationCalculationsProperties : HydraulicBoundaryLocationCalculationsProperties { - public TestHydraulicBoundaryLocationCalculationsProperties(ObservableList hydraulicBoundaryLocationCalculations) + public TestHydraulicBoundaryLocationCalculationsProperties(IObservableEnumerable hydraulicBoundaryLocationCalculations) : base(hydraulicBoundaryLocationCalculations) {} } }