Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/StrengthStabilityLengthwiseConstructionResultViewInfoTest.cs =================================================================== diff -u -rf603458169b1e2544bc933b05f169cc1637d59b2 -r6351c078e52e7a091c3307337ba66e18fde91525 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/StrengthStabilityLengthwiseConstructionResultViewInfoTest.cs (.../StrengthStabilityLengthwiseConstructionResultViewInfoTest.cs) (revision f603458169b1e2544bc933b05f169cc1637d59b2) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/StrengthStabilityLengthwiseConstructionResultViewInfoTest.cs (.../StrengthStabilityLengthwiseConstructionResultViewInfoTest.cs) (revision 6351c078e52e7a091c3307337ba66e18fde91525) @@ -87,7 +87,7 @@ { // Setup var failureMechanism = new StrengthStabilityLengthwiseConstructionFailureMechanism(); - using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism.SectionResults)) + using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism, failureMechanism.SectionResults)) { // Call string viewName = info.GetViewName(view, failureMechanism.SectionResults); @@ -147,10 +147,8 @@ var failureMechanism = new StrengthStabilityLengthwiseConstructionFailureMechanism(); - using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism.SectionResults)) + using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism, failureMechanism.SectionResults)) { - view.Data = failureMechanism.SectionResults; - // Call bool closeForData = info.CloseForData(view, assessmentSection); @@ -176,10 +174,8 @@ mocks.ReplayAll(); - using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism.SectionResults)) + using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism, failureMechanism.SectionResults)) { - view.Data = failureMechanism.SectionResults; - // Call bool closeForData = info.CloseForData(view, assessmentSection); @@ -205,10 +201,8 @@ mocks.ReplayAll(); - using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism.SectionResults)) + using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism, failureMechanism.SectionResults)) { - view.Data = failureMechanism.SectionResults; - // Call bool closeForData = info.CloseForData(view, assessmentSection); @@ -225,10 +219,8 @@ // Setup var failureMechanism = new StrengthStabilityLengthwiseConstructionFailureMechanism(); - using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism.SectionResults)) + using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism, failureMechanism.SectionResults)) { - view.Data = failureMechanism.SectionResults; - // Call bool closeForData = info.CloseForData(view, failureMechanism); @@ -243,10 +235,8 @@ // Setup var failureMechanism = new StrengthStabilityLengthwiseConstructionFailureMechanism(); - using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism.SectionResults)) + using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism, failureMechanism.SectionResults)) { - view.Data = failureMechanism.SectionResults; - // Call bool closeForData = info.CloseForData(view, new StrengthStabilityLengthwiseConstructionFailureMechanism()); @@ -265,10 +255,8 @@ mocks.ReplayAll(); - using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism.SectionResults)) + using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism, failureMechanism.SectionResults)) { - view.Data = failureMechanism.SectionResults; - // Call bool closeForData = info.CloseForData(view, failureMechanismContext); @@ -289,10 +277,8 @@ var failureMechanism = new StrengthStabilityLengthwiseConstructionFailureMechanism(); - using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism.SectionResults)) + using (var view = new StrengthStabilityLengthwiseConstructionResultView(failureMechanism, failureMechanism.SectionResults)) { - view.Data = failureMechanism.SectionResults; - // Call bool closeForData = info.CloseForData(view, failureMechanismContext); @@ -304,25 +290,6 @@ } [Test] - public void AfterCreate_Always_SetsSpecificPropertiesToView() - { - // Setup - var view = mocks.StrictMock(); - var failureMechanism = new StrengthStabilityLengthwiseConstructionFailureMechanism(); - var context = new FailureMechanismSectionResultContext(failureMechanism.SectionResults, failureMechanism); - - view.Expect(v => v.FailureMechanism = failureMechanism); - - mocks.ReplayAll(); - - // Call - info.AfterCreate(view, context); - - // Assert - mocks.VerifyAll(); - } - - [Test] public void CreateInstance_Always_ReturnsView() { // Setup