protected override void TestInitializeExtensions() { MockDefaultBottomBar = new MockDefaultBottomBarViewModel(); Subject.BottomBar = MockDefaultBottomBar; Subject.LoadPlaylistItem = model => { var tcr = new TaskCompletionSource <PlaylistItem>(); tcr.SetResult(new PlaylistItem()); return(tcr.Task); }; }
public void TestInitialize() { MockDefaultBottomBar = new MockDefaultBottomBarViewModel(); MockSubsonicService = new MockSubsonicService(); MockNavigationService = new MockNavigationService(); MockDialogNotificationService = new MockDialogNotificationService(); MockEventAggregator = new MockEventAggregator(); Subject = new TViewModel { EventAggregator = MockEventAggregator, BottomBar = MockDefaultBottomBar, SubsonicService = MockSubsonicService, NavigationService = MockNavigationService, NotificationService = MockDialogNotificationService, UpdateDisplayName = () => Subject.DisplayName = "" }; TestInitializeExtensions(); }