예제 #1
0
 public CheckConventions()
 {
     // NEDifis built-in
     Conventions.AddRange(new IVerifyConvention[]
     {
         new ExcludeFromCodeCoverageClassHasBecauseAttribute(),
         new AllClassesNeedATest(),
         new TestClassesShouldMatchClassToTest(),
         new TestClassesShouldBePrivate(),
     });
 }
예제 #2
0
 public NZazuConventions()
 {
     // NEDifis built-in
     Conventions.AddRange(new IVerifyConvention[]
     {
         new ExcludeFromCodeCoverageClassHasBecauseAttribute(),
         new AllClassesNeedATest(),
         new TestClassesShouldMatchClassToTest(),
         new TestClassesShouldBePrivate()
     });
     // customized
     Conventions.AddRange(ConventionsFor <NZazuConventions>());
 }
예제 #3
0
 protected override void PrepareForLoad()
 {
     Conventions.AddRange(new MugenConvetion[] { new ServiceConvention(Injector), new ViewModelConvention(Injector) });
     Singletons.Add <IEventAggregator, EventAggregator>();
     Singletons.Add <IErrorDialogViewModel, ErrorDialogViewModel>(true);
     Singletons.Add <IShellViewModel, ShellViewModel>(true);
     Singletons.Add <IPlaybackViewModel, PlaybackViewModel>(true);
     Singletons.Add <IFullScreenVideoPlaybackViewModel, FullScreenVideoPlaybackViewModel>();
     Singletons.Add <IEmbeddedVideoPlaybackViewModel, EmbeddedVideoPlaybackViewModel>();
     Singletons.Add <ISnappedVideoPlaybackViewModel, SnappedVideoPlaybackViewModel>();
     Singletons.Add <IDefaultBottomBarViewModel, DefaultBottomBarViewModel>();
     Singletons.Add <IPlaybackBottomBarViewModel, PlaybackBottomBarViewModel>();
     Singletons.Add <IPlaylistBottomBarViewModel, PlaylistBottomBarViewModel>();
     Singletons.Add <IManagePlaylistsViewModel, ManagePlaylistsViewModel>(true);
     Singletons.Add <ISavePlaylistViewModel, SavePlaylistViewModel>(true);
     Singletons.Add <ISettingsHelper, SettingsHelper>();
     Singletons.Add <INotificationsHelper, NotificationsHelper>();
     Singletons.Add <IConfigurationProvider, LastFmConfigurationProvider>();
     Singletons.Add <SubEchoNest.IConfigurationProvider, EchoNestConfigurationProvider>();
 }
예제 #4
0
 protected override void PrepareForLoad()
 {
     Conventions.AddRange(new MugenConvetion[] { new ServiceConvention(Injector) });
 }