Index: Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PropertyClasses/AssessmentSectionPropertiesTest.cs =================================================================== diff -u -r512d8237450c746417812937fdff951dd1aa995b -rddfb63e8113a62458f0c56bb4085dc88e695faa7 --- Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PropertyClasses/AssessmentSectionPropertiesTest.cs (.../AssessmentSectionPropertiesTest.cs) (revision 512d8237450c746417812937fdff951dd1aa995b) +++ Riskeer/Integration/test/Riskeer.Integration.Forms.Test/PropertyClasses/AssessmentSectionPropertiesTest.cs (.../AssessmentSectionPropertiesTest.cs) (revision ddfb63e8113a62458f0c56bb4085dc88e695faa7) @@ -40,11 +40,11 @@ { // Setup var mocks = new MockRepository(); - var assessmentSectionChangeHandler = mocks.Stub(); + var assessmentSectionCompositionChangeHandler = mocks.Stub(); mocks.ReplayAll(); // Call - void Call() => new AssessmentSectionProperties(null, assessmentSectionChangeHandler); + void Call() => new AssessmentSectionProperties(null, assessmentSectionCompositionChangeHandler); // Assert var exception = Assert.Throws(Call); @@ -77,13 +77,13 @@ var assessmentSection = mocks.Stub(); assessmentSection.Stub(section => section.Id).Return("1"); assessmentSection.Stub(section => section.Composition).Return(AssessmentSectionComposition.Dike); - var assessmentSectionChangeHandler = mocks.Stub(); + var assessmentSectionCompositionChangeHandler = mocks.Stub(); mocks.ReplayAll(); assessmentSection.Name = "test"; // Call - var properties = new AssessmentSectionProperties(assessmentSection, assessmentSectionChangeHandler); + var properties = new AssessmentSectionProperties(assessmentSection, assessmentSectionCompositionChangeHandler); // Assert Assert.IsInstanceOf>(properties); @@ -100,11 +100,11 @@ // Setup var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); - var assessmentSectionChangeHandler = mocks.Stub(); + var assessmentSectionCompositionChangeHandler = mocks.Stub(); mocks.ReplayAll(); // Call - var properties = new AssessmentSectionProperties(assessmentSection, assessmentSectionChangeHandler); + var properties = new AssessmentSectionProperties(assessmentSection, assessmentSectionCompositionChangeHandler); // Assert PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties); @@ -143,10 +143,10 @@ var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); assessmentSection.Expect(section => section.NotifyObservers()); - var assessmentSectionChangeHandler = mocks.Stub(); + var assessmentSectionCompositionChangeHandler = mocks.Stub(); mocks.ReplayAll(); - var properties = new AssessmentSectionProperties(assessmentSection, assessmentSectionChangeHandler); + var properties = new AssessmentSectionProperties(assessmentSection, assessmentSectionCompositionChangeHandler); // When properties.Name = newName; @@ -169,16 +169,16 @@ var observable = mocks.StrictMock(); observable.Expect(o => o.NotifyObservers()); - var assessmentSectionChangeHandler = mocks.StrictMock(); - assessmentSectionChangeHandler.Expect(handler => handler.ConfirmCompositionChange()).Return(true); - assessmentSectionChangeHandler.Expect(handler => handler.ChangeComposition(assessmentSection, newComposition)) - .Return(new[] - { - observable - }); + var assessmentSectionCompositionChangeHandler = mocks.StrictMock(); + assessmentSectionCompositionChangeHandler.Expect(handler => handler.ConfirmCompositionChange()).Return(true); + assessmentSectionCompositionChangeHandler.Expect(handler => handler.ChangeComposition(assessmentSection, newComposition)) + .Return(new[] + { + observable + }); mocks.ReplayAll(); - var properties = new AssessmentSectionProperties(assessmentSection, assessmentSectionChangeHandler); + var properties = new AssessmentSectionProperties(assessmentSection, assessmentSectionCompositionChangeHandler); // When properties.Composition = newComposition; @@ -198,11 +198,11 @@ var assessmentSection = mocks.Stub(); assessmentSection.Stub(section => section.Composition).Return(originalComposition); - var assessmentSectionChangeHandler = mocks.StrictMock(); - assessmentSectionChangeHandler.Expect(handler => handler.ConfirmCompositionChange()).Return(false); + var assessmentSectionCompositionChangeHandler = mocks.StrictMock(); + assessmentSectionCompositionChangeHandler.Expect(handler => handler.ConfirmCompositionChange()).Return(false); mocks.ReplayAll(); - var properties = new AssessmentSectionProperties(assessmentSection, assessmentSectionChangeHandler); + var properties = new AssessmentSectionProperties(assessmentSection, assessmentSectionCompositionChangeHandler); // When properties.Composition = newComposition;