コード例 #1
0
        public void SynchronizeStructureInput_ChangedStructure_ExpectedValues()
        {
            // Setup
            var differentStructure = new ClosingStructure(new ClosingStructure.ConstructionProperties
            {
                Id       = "Test id",
                Name     = "Test name",
                Location = new Point2D(-1, -1)
            });

            var input = new ClosingStructuresInput
            {
                Structure = new TestClosingStructure()
            };

            input.Structure.CopyProperties(differentStructure);

            // Precondition
            AssertClosingStructureInput(new TestClosingStructure(), input);

            // Call
            input.SynchronizeStructureInput();

            // Assert
            AssertClosingStructureInput(differentStructure, input);
        }
コード例 #2
0
        public void SynchronizeStructureInput_StructureNotSet_ExpectedValues()
        {
            // Setup
            var input = new ClosingStructuresInput();

            // Call
            input.SynchronizeStructureInput();

            // Assert
            AssertClosingStructureInput(null, input);
        }