コード例 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="authenticationService">The <see cref="AuthenticationService"/></param>
 /// <param name="pluginsService">The <see cref="Core.Services.PluginsService"/></param>
 /// <param name="cultureService">The <see cref="Core.Services.CultureService"/></param>
 /// <param name="formsAuthentication">The <see cref="FormsAuthentication"/> wrapper</param>
 public LoginController(IAuthenticationService authenticationService, IPluginsService pluginsService, ICultureService cultureService, IFormsAuthentication formsAuthentication)
 {
     this.authenticationService = authenticationService;
     this.pluginsService = pluginsService;
     this.cultureService = cultureService;
     this.formsAuthentication = formsAuthentication;
 }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PluginsController" /> class.
        /// </summary>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="nugetService">The nuget service.</param>
        /// <param name="visualStudioService">The visual studio service.</param>
        /// <param name="readMeService">The read me service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        /// <param name="dialogService">The dialog service.</param>
        /// <param name="formsService">The forms service.</param>
        /// <param name="translator">The translator.</param>
        public PluginsController(
            IFileSystem fileSystem,
            IPluginsService pluginsService,
            INugetService nugetService,
            IVisualStudioService visualStudioService,
            IReadMeService readMeService,
            ISettingsService settingsService,
            IMessageBoxService messageBoxService,
            IDialogService dialogService,
            IFormsService formsService,
            ITranslator<Tuple<DirectoryInfoBase, DirectoryInfoBase>, Plugins> translator)
            : base(visualStudioService, 
            readMeService, 
            settingsService, 
            messageBoxService,
            dialogService,
            formsService)
        {
            TraceService.WriteLine("PluginsController::Constructor");

            this.fileSystem = fileSystem;
            this.pluginsService = pluginsService;
            this.nugetService = nugetService;
            this.translator = translator;
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginsController"/> class.
 /// </summary>
 /// <param name="pluginsService">The plugins service.</param>
 public PluginsController(
     IPluginsService pluginsService)
     : base(
         new VisualStudioService(),
         new ReadMeService(),
         new SettingsService())
 {
     this.pluginsService = pluginsService;
 }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PluginFactory" /> class.
        /// </summary>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="pluginsTranslator">The pluginsTranslator.</param>
        public PluginFactory(
            IPluginsService pluginsService,
            ITranslator<string, Plugins> pluginsTranslator)
        {
            TraceService.WriteLine("PluginFactory::Constructor");

            this.pluginsService = pluginsService;
            this.pluginsTranslator = pluginsTranslator;
        }
コード例 #5
0
        public override void SetUp()
        {
            base.SetUp();

            pluginService = mockery.DynamicMock<IPluginsService>();

            controller = new ContentController(pluginService);

            PrepareController(controller);
        }
コード例 #6
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="NugetPackagesBaseViewModel" /> class.
 /// </summary>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="pluginsService">The plugins service.</param>
 /// <param name="projectFactory">The project factory.</param>
 /// <param name="pluginFactory">The plugin factory.</param>
 protected NugetPackagesBaseViewModel(
     ISettingsService settingsService,
     IPluginsService pluginsService,
     IProjectFactory projectFactory,
     IPluginFactory pluginFactory)
 {
     this.settingsService = settingsService;
     this.pluginsService = pluginsService;
     this.projectFactory = projectFactory;
     this.pluginFactory = pluginFactory;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MvvmCrossController" /> class.
 /// </summary>
 /// <param name="visualStudioService">The visual studio service.</param>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="pluginsService">The plugins service.</param>
 /// <param name="configurationService">The configuration service.</param>
 public MvvmCrossController(
     IVisualStudioService visualStudioService,
     ISettingsService settingsService,
     IPluginsService pluginsService,
     IConfigurationService configurationService)
 {
     this.visualStudioService  = visualStudioService;
     this.settingsService      = settingsService;
     this.pluginsService       = pluginsService;
     this.configurationService = configurationService;
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MvvmCrossController" /> class.
 /// </summary>
 /// <param name="visualStudioService">The visual studio service.</param>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="pluginsService">The plugins service.</param>
 /// <param name="configurationService">The configuration service.</param>
 public MvvmCrossController(
     IVisualStudioService visualStudioService, 
     ISettingsService settingsService,
     IPluginsService pluginsService,
     IConfigurationService configurationService)
 {
     this.visualStudioService = visualStudioService;
     this.settingsService = settingsService;
     this.pluginsService = pluginsService;
     this.configurationService = configurationService;
 }
コード例 #9
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="NugetPackagesBaseViewModel" /> class.
 /// </summary>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="pluginsService">The plugins service.</param>
 /// <param name="projectFactory">The project factory.</param>
 /// <param name="pluginFactory">The plugin factory.</param>
 protected NugetPackagesBaseViewModel(
     ISettingsService settingsService,
     IPluginsService pluginsService,
     IProjectFactory projectFactory,
     IPluginFactory pluginFactory)
 {
     this.settingsService = settingsService;
     this.pluginsService  = pluginsService;
     this.projectFactory  = projectFactory;
     this.pluginFactory   = pluginFactory;
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PluginsViewModel" /> class.
 /// </summary>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="pluginsService">The plugins service.</param>
 /// <param name="projectFactory">The project factory.</param>
 /// <param name="pluginFactory">The plugin factory.</param>
 public PluginsViewModel(
     ISettingsService settingsService,
     IPluginsService pluginsService,
     IProjectFactory projectFactory,
     IPluginFactory pluginFactory)
     : base(settingsService,
         pluginsService,
         projectFactory,
         pluginFactory)
 {
     this.settingsService = settingsService;
 }
コード例 #11
0
        /// <summary>
        /// Initializes a new instance of the <see cref="XamarinFormsLabsViewModel" /> class.
        /// </summary>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="pluginFactory">The plugin factory.</param>
        public XamarinFormsLabsViewModel(
            ISettingsService settingsService,
            IPluginsService pluginsService,
            IPluginFactory pluginFactory)
        {
            TraceService.WriteLine("XamarinFormsLabsViewModel::Constructor Start");

            this.settingsService = settingsService;
            this.pluginsService = pluginsService;
            this.pluginFactory = pluginFactory;

            TraceService.WriteLine("XamarinFormsLabsViewModel::Constructor End");
        }
コード例 #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="XamarinFormsLabsViewModel" /> class.
 /// </summary>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="pluginsService">The plugins service.</param>
 /// <param name="projectFactory">The project factory.</param>
 /// <param name="pluginFactory">The plugin factory.</param>
 public XamarinFormsLabsViewModel(
     ISettingsService settingsService,
     IPluginsService pluginsService,
     IProjectFactory projectFactory,
     IPluginFactory pluginFactory)
     : base(
         settingsService,
         pluginsService,
         projectFactory,
         pluginFactory)
 {
     this.settingsService = settingsService;
 }
コード例 #13
0
        public override void SetUp()
        {
            base.SetUp();

            authenticationService = mockery.DynamicMock<IAuthenticationService>();
            pluginsService = mockery.DynamicMock<IPluginsService>();
            formsAuthentication = mockery.Stub<IFormsAuthentication>();
            cultureService = mockery.DynamicMock<ICultureService>();
            controller = new LoginController(authenticationService, pluginsService, cultureService, formsAuthentication);

            ConfigurationManager.AppSettings["plugins.path"] = PLUGINPATH;

            PrepareController(controller);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationSamplesOptionsViewModel" /> class.
 /// </summary>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="cachingService">The caching service.</param>
 /// <param name="pluginsService">The plugins service.</param>
 /// <param name="projectFactory">The project factory.</param>
 /// <param name="pluginFactory">The plugin factory.</param>
 public ApplicationSamplesOptionsViewModel(
     ISettingsService settingsService,
     ICachingService cachingService,
     IPluginsService pluginsService,
     IProjectFactory projectFactory,
     IPluginFactory pluginFactory)
     : base(settingsService,
      pluginsService,
      projectFactory,
      pluginFactory)
 {
     this.settingsService = settingsService;
     this.cachingService = cachingService;
 }
コード例 #15
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NugetPackagesViewModel" /> class.
        /// </summary>
        /// <param name="applicationService">The application service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="pluginFactory">The plugin factory.</param>
        public NugetPackagesViewModel(
            IApplicationService applicationService,
            ISettingsService settingsService,
            IPluginsService pluginsService,
            IPluginFactory pluginFactory)
        {
            TraceService.WriteLine("NugetServicesViewModel::Constructor Start");

            this.applicationService = applicationService;
            this.settingsService = settingsService;
            this.pluginsService = pluginsService;
            this.pluginFactory = pluginFactory;

            TraceService.WriteLine("NugetServicesViewModel::Constructor End");
        }
コード例 #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplicationOptionsViewModel" /> class.
 /// </summary>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="pluginsService">The plugins service.</param>
 /// <param name="pluginFactory">The plugin factory.</param>
 /// <param name="cachingService">The caching service.</param>
 /// <param name="projectFactory">The project factory.</param>
 public ApplicationOptionsViewModel(
     ISettingsService settingsService,
     IPluginsService pluginsService,
     IPluginFactory pluginFactory,
     ICachingService cachingService,
     IProjectFactory projectFactory)
     : base(
         settingsService,
         pluginsService,
         projectFactory,
         pluginFactory)
 {
     this.settingsService = settingsService;
     this.cachingService  = cachingService;
 }
コード例 #17
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PluginFactory" /> class.
        /// </summary>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="pluginsTranslator">The pluginsTranslator.</param>
        /// <param name="pluginTranslator">The plugin translator.</param>
        public PluginFactory(
            IPluginsService pluginsService,
            IFileSystem fileSystem,
            ISettingsService settingsService,
            ITranslator<Tuple<DirectoryInfoBase, DirectoryInfoBase>, Plugins> pluginsTranslator,
            ITranslator<FileInfoBase, Plugin> pluginTranslator)
        {
            TraceService.WriteLine("PluginFactory::Constructor");

            this.pluginsService = pluginsService;
            this.fileSystem = fileSystem;
            this.settingsService = settingsService;
            this.pluginsTranslator = pluginsTranslator;
            this.pluginTranslator = pluginTranslator;
        }
コード例 #18
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ServicesService" /> class.
        /// </summary>
        /// <param name="pluginTranslator">The plugin translator.</param>
        /// <param name="codeConfigTranslator">The code config translator.</param>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="snippetService">The snippet service.</param>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        public ServicesService(
            ITranslator<FileInfoBase, Plugin> pluginTranslator,
            ITranslator<string, CodeConfig> codeConfigTranslator,
            IFileSystem fileSystem, 
            ISettingsService settingsService,
            ISnippetService snippetService,
            IPluginsService pluginsService,
            IMessageBoxService messageBoxService)
            : base(codeConfigTranslator, fileSystem, settingsService, snippetService)
        {
            TraceService.WriteLine("ServicesService::Constructor");

            this.pluginTranslator = pluginTranslator;
            this.pluginsService = pluginsService;
            this.messageBoxService = messageBoxService;
        }
コード例 #19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NugetPackagesViewModel" /> class.
 /// </summary>
 /// <param name="applicationService">The application service.</param>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="pluginsService">The plugins service.</param>
 /// <param name="projectFactory">The project factory.</param>
 /// <param name="pluginFactory">The plugin factory.</param>
 /// <param name="cachingService">The caching service.</param>
 public NugetPackagesViewModel(
     IApplicationService applicationService,
     ISettingsService settingsService,
     IPluginsService pluginsService,
     IProjectFactory projectFactory,
     IPluginFactory pluginFactory,
     ICachingService cachingService)
     : base(settingsService,
         pluginsService,
         projectFactory,
         pluginFactory)
 {
     this.applicationService = applicationService;
     this.settingsService = settingsService;
     this.pluginFactory = pluginFactory;
     this.cachingService = cachingService;
 }
コード例 #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NugetPackagesViewModel" /> class.
 /// </summary>
 /// <param name="applicationService">The application service.</param>
 /// <param name="settingsService">The settings service.</param>
 /// <param name="pluginsService">The plugins service.</param>
 /// <param name="projectFactory">The project factory.</param>
 /// <param name="pluginFactory">The plugin factory.</param>
 /// <param name="cachingService">The caching service.</param>
 public NugetPackagesViewModel(
     IApplicationService applicationService,
     ISettingsService settingsService,
     IPluginsService pluginsService,
     IProjectFactory projectFactory,
     IPluginFactory pluginFactory,
     ICachingService cachingService)
     : base(
         settingsService,
         pluginsService,
         projectFactory,
         pluginFactory)
 {
     this.applicationService = applicationService;
     this.settingsService    = settingsService;
     this.pluginFactory      = pluginFactory;
     this.cachingService     = cachingService;
 }
コード例 #21
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PluginsController" /> class.
        /// </summary>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="nugetService">The nuget service.</param>
        /// <param name="visualStudioService">The visual studio service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        /// <param name="resolverService">The resolver service.</param>
        /// <param name="readMeService">The read me service.</param>
        public PluginsController(
            IPluginsService pluginsService,
            INugetService nugetService,
            IVisualStudioService visualStudioService,
            ISettingsService settingsService,
            IMessageBoxService messageBoxService,
            IResolverService resolverService,
            IReadMeService readMeService)
            : base(visualStudioService, 
            settingsService, 
            messageBoxService,
            resolverService,
            readMeService)
        {
            TraceService.WriteLine("PluginsController::Constructor");

            this.pluginsService = pluginsService;
            this.nugetService = nugetService;
        }
コード例 #22
0
        public override void SetUp()
        {
            base.SetUp();

            Referrer = "Plugins/List";

            service = mockery.DynamicMock<IPluginsService>();
            controller = new PluginsController(service);

            ConfigurationManager.AppSettings["plugins.path"] = PLUGINPATH;

            PrepareController(controller, "Plugins");
        }
コード例 #23
0
 internal AssemblyPluginsLoader(PluginsManager manager, IPluginsService service)
 {
     _manager = manager;
     _service = service;
 }
コード例 #24
0
 public PluginsController(IPluginsService service)
 {
     this.service = service;
 }
コード例 #25
0
        /// <summary>
        /// Inits this instance.
        /// </summary>
        public void Init()
        {
            TraceService.WriteLine("ServicesService::Init");

            this.pluginsService = pluginFactory.GetPluginsService();
            this.codeSnippetService = codeSnippetFactory.GetCodeSnippetService();
            this.codeConfigService = codeConfigFactory.GetCodeConfigService();
        }
コード例 #26
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ServicesService" /> class.
        /// </summary>
        /// <param name="pluginTranslator">The plugin translator.</param>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="codeConfigService">The code config service.</param>
        /// <param name="settingsService">The settings service.</param>
        /// <param name="snippetService">The snippet service.</param>
        /// <param name="pluginsService">The plugins service.</param>
        /// <param name="messageBoxService">The message box service.</param>
        /// <param name="nugetService">The nuget service.</param>
        public ServicesService(
            ITranslator<FileInfoBase, Plugin> pluginTranslator,
            IFileSystem fileSystem, 
            ICodeConfigService codeConfigService,
            ISettingsService settingsService,
            ISnippetService snippetService,
            IPluginsService pluginsService,
            IMessageBoxService messageBoxService,
            INugetService nugetService)
        {
            TraceService.WriteLine("ServicesService::Constructor");

            this.pluginTranslator = pluginTranslator;
            this.fileSystem = fileSystem;
            this.codeConfigService = codeConfigService;
            this.settingsService = settingsService;
            this.snippetService = snippetService;
            this.pluginsService = pluginsService;
            this.messageBoxService = messageBoxService;
            this.nugetService = nugetService;
        }
コード例 #27
0
 public PluginManagementController(IPluginsService service)
 {
     this.service = service;
 }
コード例 #28
0
 public ContentController(IPluginsService pluginsService)
 {
     this.pluginsService = pluginsService;
 }