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);
     };
 }
예제 #2
0
 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();
 }