예제 #1
0
        /// <summary>
        /// Schedules the point.
        /// </summary>
        /// <param name="point">Point.</param>
        /// <returns>Scheduled point index in Scalarm</returns>
        public virtual int SchedulePoint(ValuesMap point)
        {
            var request = new RestRequest(String.Format("experiments/{0}/schedule_point", this.Id), Method.POST);

            request.AddParameter("point", point.ToJson());
            var result = Client.Execute <SchedulePointResult> (request);

            return(HandleSchedulePointResponse(result));
        }
예제 #2
0
        public void JsonOrderTest()
        {
            var vmp = new ValuesMap()
            {
                { "b", "2" },
                { "a", "1" }
            };

            Assert.AreEqual(@"{""a"":""1"",""b"":""2""}", vmp.ToJson());
        }