public ManageWebserviceSourceViewModel(IManageWebServiceSourceModel updateManager, IEventAggregator aggregator, IWebServiceSource webServiceSource, IAsyncWorker asyncWorker, IExternalProcessExecutor executor)
     : this(updateManager, aggregator, asyncWorker, executor)
 {
     VerifyArgument.IsNotNull("webServiceSource", webServiceSource);
     _warewolfserverName = updateManager.ServerName;
     AsyncWorker.Start(() => updateManager.FetchSource(webServiceSource.Id), source =>
     {
         _webServiceSource      = source;
         _webServiceSource.Path = webServiceSource.Path;
         // ReSharper disable once VirtualMemberCallInContructor
         FromModel(_webServiceSource);
         Item = ToSource();
         SetupHeaderTextFromExisting();
     });
 }
 public ManageWebserviceSourceViewModel(IManageWebServiceSourceModel updateManager, IEventAggregator aggregator, IAsyncWorker asyncWorker, IExternalProcessExecutor executor)
     : base("WebSource")
 {
     VerifyArgument.IsNotNull("executor", executor);
     VerifyArgument.IsNotNull("asyncWorker", asyncWorker);
     VerifyArgument.IsNotNull("updateManager", updateManager);
     VerifyArgument.IsNotNull("aggregator", aggregator);
     AsyncWorker         = asyncWorker;
     Executor            = executor;
     _updateManager      = updateManager;
     _warewolfserverName = updateManager.ServerName;
     _authenticationType = AuthenticationType.Anonymous;
     _hostName           = string.Empty;
     _defaultQuery       = string.Empty;
     _userName           = string.Empty;
     _password           = string.Empty;
     HeaderText          = Resources.Languages.Core.WebserviceNewHeaderLabel;
     Header               = Resources.Languages.Core.WebserviceNewHeaderLabel;
     TestCommand          = new DelegateCommand(TestConnection, CanTest);
     OkCommand            = new DelegateCommand(SaveConnection, CanSave);
     CancelTestCommand    = new DelegateCommand(CancelTest, CanCancelTest);
     ViewInBrowserCommand = new DelegateCommand(ViewInBrowser, CanViewInBrowser);
 }
 public ManageWebserviceSourceViewModel(IManageWebServiceSourceModel updateManager, Task <IRequestServiceNameViewModel> requestServiceNameViewModel, IEventAggregator aggregator, IAsyncWorker asyncWorker, IExternalProcessExecutor executor)
     : this(updateManager, aggregator, asyncWorker, executor)
 {
     VerifyArgument.IsNotNull("requestServiceNameViewModel", requestServiceNameViewModel);
     _requestServiceNameViewModel = requestServiceNameViewModel;
 }