public void TestInitialize()
 {
     shell = Substitute.For<ShellViewModel>();
     serviceControl = Substitute.For<IServiceControl>();
     settingsProvider = Substitute.For<ISettingsProvider>();
     connection = Substitute.For<ServiceControlConnectionProvider>();
     container = RegisterContainer();
     storedSetting = GetReloadedSettings();
     settingsProvider.GetSettings<ProfilerSettings>().Returns(storedSetting);
     connectTo = new ServiceControlConnectionViewModel(settingsProvider, container) { Parent = shell }; //TODO: Do we need to pass the full container here?
 }
Beispiel #2
0
 public void TestInitialize()
 {
     shell            = Substitute.For <ShellViewModel>();
     serviceControl   = Substitute.For <IServiceControl>();
     settingsProvider = Substitute.For <ISettingsProvider>();
     connection       = Substitute.For <ServiceControlConnectionProvider>();
     container        = RegisterContainer();
     storedSetting    = GetReloadedSettings();
     settingsProvider.GetSettings <ProfilerSettings>().Returns(storedSetting);
     connectTo = new ServiceControlConnectionViewModel(settingsProvider, container)
     {
         Parent = shell
     };                                                                                                 //TODO: Do we need to pass the full container here?
 }
Beispiel #3
0
 public EndpointExplorerViewModel(
     IEventAggregator eventAggregator,
     ISettingsProvider settingsProvider,
     ServiceControlConnectionProvider connectionProvider,
     CommandLineArgParser commandLineParser,
     IServiceControl serviceControl,
     NetworkOperations networkOperations)
 {
     this.eventAggregator    = eventAggregator;
     this.settingsProvider   = settingsProvider;
     this.serviceControl     = serviceControl;
     this.networkOperations  = networkOperations;
     this.connectionProvider = connectionProvider;
     this.commandLineParser  = commandLineParser;
     Items = new BindableCollection <ExplorerItem>();
 }