public void Set(cocdType cmi)
        {
            Set sr = new Set();

            sr.cocd = cmi;
            Set(sr);
        }
        public void set()
        {
            LETSIRTE_Service client = getClient();
            cocdType cmi = new cocdType();
            cmi.exitSpecified = true;
            cmi.exit = exit.suspend;

            Log(cmi.ToString());
            client.Set(cmi);
        }
        public void location()
        {
            LETSIRTE_Service client = getClient();
            Log("verify open attempt");
            attemptSummary[] attempts = client.GetAttemptList();
            if (entry.other == attempts[attempts.Length - 1].entry)
            {
                Assert.Ignore(string.Format("Current attempt for registration {0} is closed, registration is closed, test can't continue.", RegId));
            }

            Log("Location: " + client.Get().location);
            cocdType cocd = new cocdType();
            string location = Guid.NewGuid().ToString();

            cocd.location = location;
            client.Set(cocd);

            cocd = client.Get();
            Assert.AreEqual(location, cocd.location, "location");

            client.Set(new cocdType());
            cocd = client.Get();
            Assert.AreEqual(location, cocd.location, "location");

            location = "";

            cocd.location = location;
            client.Set(cocd);

            cocd = client.Get();
            Assert.AreEqual(location, cocd.location, "location");
        }
        public void learnerPreferences()
        {
            LETSIRTE_Service client = getClient();
            cocdType cmi = new cocdType();
            cmi.exitSpecified = true;
            cmi.exit = exit.suspend;

            cmi.learnerPreferenceAudioCaptioningSpecified = true;
            cmi.learnerPreferenceAudioCaptioning = learnerPreferenceAudioCaptioning.on;

            cmi.learnerPreferenceAudioLevelSpecified = true;
            cmi.learnerPreferenceAudioLevel = .5m;

            cmi.learnerPreferenceDeliverySpeedSpecified = true;
            cmi.learnerPreferenceDeliverySpeed = .4m;

            cmi.learnerPreferenceLanguage = "en-GB";
            Log(cmi.ToString());
            client.Set(cmi);

            cmi = client.Get();

            Assert.AreEqual(learnerPreferenceAudioCaptioning.on, cmi.learnerPreferenceAudioCaptioning, "learnerPreferenceAudioCaptioning");
            Assert.AreEqual(.5m, cmi.learnerPreferenceAudioLevel, "learnerPreferenceAudioLevel");
            Assert.AreEqual(.4m, cmi.learnerPreferenceDeliverySpeed, "learnerPreferenceDeliverySpeed");
            Assert.AreEqual("en-GB", cmi.learnerPreferenceLanguage, "learnerPreferenceLanguage");
        }
        public void commentTest()
        {
            LETSIRTE_Service client = getClient();

            cocdType cocd = new cocdType();
            cocd.commentsFromLearner = new commentType[1];

            cocd.commentsFromLearner[0] = new commentType();

            cocd.commentsFromLearner[0].timeStamp = DateTime.Now;
            cocd.commentsFromLearner[0].location = "right here";
            cocd.commentsFromLearner[0].identifier = "comment1";
            cocd.commentsFromLearner[0].comment = new commentTypeComment();
            cocd.commentsFromLearner[0].comment.Value = "new comment";

            //TODO: empty objective doesn't work cocd.commentsFromLearner[1] = new commentType();

            cocd.exit = exit.suspend;
            cocd.exitSpecified = true;
            client.Set(cocd);
            cocd = client.Get();

            //cocd.commentsFromLearner[0].timeStamp = DateTime.Now;
            //Assert.AreEqual( "right here", cocd.commentsFromLearner[0].location);
            //Assert.AreEqual( "not yet implemented" ,cocd.commentsFromLearner[0].identifier);
            Assert.AreEqual("new comment", cocd.commentsFromLearner[0].comment.Value);
        }