Ejemplo n.º 1
0
        IServiceLocator CreateServiceLocator(IWindowsFactory windowFactory)
        {
            var builder = new ServiceLocatorStubBuilder();

            builder.WindowsFactory = windowFactory;
            return(builder.Build());
        }
Ejemplo n.º 2
0
 public JsonWindowLoaderService(IWindowsManagerService windowsManager,
                                IWindowsFactory windowsFactory,
                                IStoreSettings storeSettings)
 {
     _windowsManager = windowsManager ?? throw new ArgumentNullException(nameof(windowsManager));
     _windowsFactory = windowsFactory ?? throw new ArgumentNullException(nameof(windowsFactory));
     _storeSettings  = storeSettings ?? throw new ArgumentNullException(nameof(storeSettings));
 }
Ejemplo n.º 3
0
        public StoreServicesTests()
        {
            managerService = new WindowsManagerService();
            var samples = new WindowsSamples(managerService);

            factoryService = new WindowsFactoryMock();
            storeService   = new JsonWindowStoreService(managerService, new DefaultStoreSettings());
        }
Ejemplo n.º 4
0
        public NavigationServiceTests()
        {
            managerService = new WindowsManagerService();
            samples        = new WindowsSamples(managerService);

            factoryService    = new WindowsFactoryMock();
            navigationService = new NavigationService(managerService, factoryService);
        }
Ejemplo n.º 5
0
 public WindowsServiceHandler(IRuntimeSettings runtimeSettings, IWindowsFactory windows)
 {
     if (runtimeSettings == null)
     {
         throw new ArgumentNullException("runtimeSettings");
     }
     this._runtimeSettings = runtimeSettings;
     this._windowsServices = windows.WindowsServices(null);
 }
 public DeploymentHelperHost(
     IWindowsFactory windows, ILiteServerFactory liteServerFactory,
     IConsoleWriter consoleWriter, IShutdown shutdown, IHttpServerFactory httpServerFactory,
     IWindowsServiceHandler windowsServiceHandler, IRuntimeSettings settings)
 {
     _shutdown              = shutdown;
     _httpServerFactory     = httpServerFactory;
     _windowsServiceHandler = windowsServiceHandler;
     _settings              = settings;
     _liteServerFactory     = liteServerFactory;
     _consoleWriter         = consoleWriter;
     _windowsServices       = windows.WindowsServices();
 }
Ejemplo n.º 7
0
 public NavigationService(IWindowsManagerService windowsManager, IWindowsFactory windowsFactory)
 {
     _windowManager  = windowsManager ?? throw new ArgumentNullException(nameof(windowsManager));
     _windowsFactory = windowsFactory ?? throw new ArgumentNullException(nameof(windowsFactory));
 }
Ejemplo n.º 8
0
 public WindowsServiceHandler(IRuntimeSettings runtimeSettings, IWindowsFactory windows)
 {
     _runtimeSettings = runtimeSettings;
     _windowsServices = windows.WindowsServices();
 }
Ejemplo n.º 9
0
 public DialogServices(IWindowsFactory windowsFactory, IApplicationServices applicationServices)
 {
     _windowsFactory      = windowsFactory;
     _applicationServices = applicationServices;
 }
Ejemplo n.º 10
0
 public ScheduledTaskHandler(IRuntimeSettings runtimeSettings, IWindowsFactory windows)
 {
     this._runtimeSettings = runtimeSettings;
     this._taskScheduler   = windows.TaskScheduler(null);
 }
Ejemplo n.º 11
0
 public WindowsServiceController(IWindowsFactory windows, IRuntimeSettings settings)
 {
     _settings        = settings;
     _windowsServices = windows.WindowsServices();
 }