public void Setup() { audioRecorder = new Mock<IRecordAudio>(); audioRecorder.Setup(a => a.Start(It.IsAny<string>())); audioRecorder.Setup(a => a.Stop(It.IsAny<Action<string>>())); command = new RecordingCommand(RecordingCompletedCallback); command.RecordingDirectory = @"c:\"; command.ActiveDocument = "MyFile.cs"; command.AudioRecorder = audioRecorder.Object; }
public void Default_recorder_is_mp3() { command = new RecordingCommand(RecordingCompletedCallback); Assert.IsInstanceOfType(command.AudioRecorder, typeof(Mp3AudioRecorder)); }
public AudioRecorderViewModel() { RecordingCommand = new RecordingCommand(RecordingCompleteCallback); DurationText = "00:00:00"; }