Exemple #1
0
        public void CreateIdentificationResponse_()
        {
            string robotType = "Test type";

            IdentificationResponse_ result = MessageBuilder.CreateIdentificationResponse_(robotType);

            Assert.AreEqual(result.robotType, robotType);
        }
        /// <summary>
        /// Create an identification response message.
        /// </summary>
        /// <param name="robotType_"></param>
        /// <returns>The created message</returns>
        public static IdentificationResponse_ CreateIdentificationResponse_(string robotType_)
        {
            if (robotType_ == null)
            {
                throw new ArgumentNullException("robotType_");
            }

            // NOTE: Allow emtpy robot type?

            IdentificationResponse_ result = new IdentificationResponse_
            {
                robotType = robotType_,
            };

            return(result);
        }