public void testNewStartRecordingObject() { StartRecording startRecording = new StartRecording(); startRecording.Format = AudioFormat.Mp3; startRecording.Method = Method.Post; startRecording.Url = "http://blah.com/recordings/1234.wav"; startRecording.Username = "******"; startRecording.Password = "******"; Tropo tropo = new Tropo(); tropo.StartRecording(startRecording); Assert.AreEqual(this.startRecordingJson, tropo.RenderJSON()); }
public void testNewStartRecording() { Tropo tropo = new Tropo(); tropo.StartRecording(AudioFormat.Mp3, Method.Post, "http://blah.com/recordings/1234.wav", "jose", "password"); Assert.AreEqual(this.startRecordingJson, tropo.RenderJSON()); }