Beispiel #1
0
 /// <summary>
 /// Converts CalculateDesignProfileResponse into CalculateDesignProfileResult data.
 /// </summary>
 /// <param name="result"></param>
 /// <returns></returns>
 private DesignProfileResult ConvertResult(CalculateDesignProfileResponse result)
 {
     return(new DesignProfileResult(result.Profile.Select(x => new XYZS
     {
         X = x.X, Y = x.Y, Z = x.Z, Station = x.Station
     }).ToList()));
 }
Beispiel #2
0
        public void Test_CalculateDesignProfileResponse()
        {
            var response = new CalculateDesignProfileResponse
            {
                Profile = new List <XYZS> {
                    new XYZS(0, 0, 0, 0, 0), new XYZS(100, 101, 102, 103, 104)
                }
            };

            SimpleBinarizableInstanceTester.TestClass(response, "Custom CalculateDesignProfileResponse not same after round trip serialisation");
        }