protected BocReferenceValueBase() { _optionsMenu = new DropDownMenu(this); _command = new SingleControlItemCollection(new BocCommand(), new[] { typeof(BocCommand) }); _command.OwnerControl = this; _commonStyle = new Style(); _labelStyle = new Style(); _webServiceFactory = new WebServiceFactory(new BuildManagerWrapper()); EnableIcon = true; }
public WebService(IWebServiceFactory serviceFactory, IClientFactory clientFactory) { this.serviceFactory = serviceFactory ?? throw new ArgumentNullException(nameof(serviceFactory)); this.clientFactory = clientFactory ?? throw new ArgumentNullException(nameof(clientFactory)); client = new Lazy <TWebServiceClient>(() => clientFactory.Create <TWebServiceClient>()); }