public CheckConventions() { // NEDifis built-in Conventions.AddRange(new IVerifyConvention[] { new ExcludeFromCodeCoverageClassHasBecauseAttribute(), new AllClassesNeedATest(), new TestClassesShouldMatchClassToTest(), new TestClassesShouldBePrivate(), }); }
public NZazuConventions() { // NEDifis built-in Conventions.AddRange(new IVerifyConvention[] { new ExcludeFromCodeCoverageClassHasBecauseAttribute(), new AllClassesNeedATest(), new TestClassesShouldMatchClassToTest(), new TestClassesShouldBePrivate() }); // customized Conventions.AddRange(ConventionsFor <NZazuConventions>()); }
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>(); }
protected override void PrepareForLoad() { Conventions.AddRange(new MugenConvetion[] { new ServiceConvention(Injector) }); }