public void SetUp() { destinationFilename = "anArtist - aName.ext"; track = new Track(new TrackElement(), false, true); fileSystemBrowser = new FileSystemBrowserStub() { DestinationFilename = destinationFilename }; webAccessProxy = new WebAccessProxyStub(); downloadingMediaContent = Features.DownloadingMediaContent; trackViewModel = new TrackViewModel(track, fileSystemBrowser, webAccessProxy); }
public void SetUp() { fileSystemBrowserStub = new FileSystemBrowserStub(); downloadingMediaContent = Features.DownloadingMediaContent; testScheduler = new TestScheduler(); origSched = RxApp.DeferredScheduler; RxApp.DeferredScheduler = testScheduler; aMix = new Mix(new MixElement(), 0); lockObject = new ManualResetEvent(false); audioPlayer = new AudioPlayerStub(); requestExecutor = new RequestExecutorStub(); playbackController = new PlaybackController(audioPlayer, requestExecutor); mediaLibraryBrowser = new MediaLibraryBrowser(requestExecutor); userLoggedInSubject = new Subject <bool>(); mixViewModel = new MixViewModel(aMix, playbackController, mediaLibraryBrowser, userLoggedInSubject); mixViewModel.FileSystemBrowser = fileSystemBrowserStub; mixViewModel.WebAccessProxy = new WebAccessProxyStub(); lockObject.Reset(); }