private ProfilerSettings GetReloadedSettings()
        {
            var settings = new ProfilerSettings();

            settings.RecentManagementApiEntries.Add("http://localhost/api");
            settings.RecentManagementApiEntries.Add("http://othermachine:8888/api");

            return settings;
        }
 public ServiceControlConnectionViewModel(
     ISettingsProvider settingsProvider,
     IContainer container)
 {
     _settingsProvider = settingsProvider;
     _container = container;
     _appSettings = settingsProvider.GetSettings<ProfilerSettings>();
     DisplayName = "Connect To ServiceControl";
 }
 public ManagementConnectionViewModel(
     ISettingsProvider settingsProvider,
     IContainer container)
 {
     _settingsProvider = settingsProvider;
     _container = container;
     _appSettings = settingsProvider.GetSettings<ProfilerSettings>();
     DisplayName = "Connect To Management Service";
 }
 public void TestInitialize()
 {
     shell = Substitute.For<IShellViewModel>();
     serviceControl = Substitute.For<IServiceControl>();
     settingsProvider = Substitute.For<ISettingsProvider>();
     connection = Substitute.For<IServiceControlConnectionProvider>();
     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?
 }