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 set() { LETSIRTE_Service client = getClient(); cocdType cmi = new cocdType(); cmi.exitSpecified = true; cmi.exit = exit.suspend; Log(cmi.ToString()); client.Set(cmi); }