IServiceLocator CreateServiceLocator(IWindowsFactory windowFactory) { var builder = new ServiceLocatorStubBuilder(); builder.WindowsFactory = windowFactory; return(builder.Build()); }
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)); }
public StoreServicesTests() { managerService = new WindowsManagerService(); var samples = new WindowsSamples(managerService); factoryService = new WindowsFactoryMock(); storeService = new JsonWindowStoreService(managerService, new DefaultStoreSettings()); }
public NavigationServiceTests() { managerService = new WindowsManagerService(); samples = new WindowsSamples(managerService); factoryService = new WindowsFactoryMock(); navigationService = new NavigationService(managerService, factoryService); }
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(); }
public NavigationService(IWindowsManagerService windowsManager, IWindowsFactory windowsFactory) { _windowManager = windowsManager ?? throw new ArgumentNullException(nameof(windowsManager)); _windowsFactory = windowsFactory ?? throw new ArgumentNullException(nameof(windowsFactory)); }
public WindowsServiceHandler(IRuntimeSettings runtimeSettings, IWindowsFactory windows) { _runtimeSettings = runtimeSettings; _windowsServices = windows.WindowsServices(); }
public DialogServices(IWindowsFactory windowsFactory, IApplicationServices applicationServices) { _windowsFactory = windowsFactory; _applicationServices = applicationServices; }
public ScheduledTaskHandler(IRuntimeSettings runtimeSettings, IWindowsFactory windows) { this._runtimeSettings = runtimeSettings; this._taskScheduler = windows.TaskScheduler(null); }
public WindowsServiceController(IWindowsFactory windows, IRuntimeSettings settings) { _settings = settings; _windowsServices = windows.WindowsServices(); }