Exemplo n.º 1
0
 private void SetupCommonResults(SizeF topLeft    = new SizeF(), SizeF topRight    = new SizeF(),
                                 SizeF bottomLeft = new SizeF(), SizeF bottomRight = new SizeF())
 {
     SetupResult.For(_topObject.Dimensions).Return(_dimensions);
     SetupResult.For(_topObject.get_Slants(0)).Return(topLeft);
     SetupResult.For(_topObject.get_Slants(1)).Return(topRight);
     SetupResult.For(_topObject.get_Slants(2)).Return(bottomRight);
     SetupResult.For(_topObject.get_Slants(3)).Return(bottomLeft);
 }
Exemplo n.º 2
0
        private WallHoleData GetTopObjectWallHoleData()
        {
            SizeF[] slants = new SizeF[4];

            for (int i = 0; i < slants.Length; i++)
            {
                slants[i] = _topObject.get_Slants(i);
            }

            return(new WallHoleData
            {
                MainDimension = _topObject.Dimensions.Size,
                Slants = slants
            });
        }