本文整理汇总了C#中ICommandExecutor类的典型用法代码示例。如果您正苦于以下问题:C# ICommandExecutor类的具体用法?C# ICommandExecutor怎么用?C# ICommandExecutor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ICommandExecutor类属于命名空间,在下文中一共展示了ICommandExecutor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RemoteWebDriver
/// <summary>
/// Initializes a new instance of the <see cref="RemoteWebDriver"/> class
/// </summary>
/// <param name="commandExecutor">An <see cref="ICommandExecutor"/> object which executes commands for the driver.</param>
/// <param name="desiredCapabilities">An <see cref="ICapabilities"/> object containing the desired capabilities of the browser.</param>
public RemoteWebDriver(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
{
this.executor = commandExecutor;
this.StartClient();
this.StartSession(desiredCapabilities);
this.mouse = new RemoteMouse(this);
this.keyboard = new RemoteKeyboard(this);
if (this.capabilities.HasCapability(CapabilityType.SupportsApplicationCache))
{
object appCacheCapability = this.capabilities.GetCapability(CapabilityType.SupportsApplicationCache);
if (appCacheCapability is bool && (bool)appCacheCapability)
{
this.appCache = new RemoteApplicationCache(this);
}
}
if (this.capabilities.HasCapability(CapabilityType.SupportsLocationContext))
{
object locationContextCapability = this.capabilities.GetCapability(CapabilityType.SupportsLocationContext);
if (locationContextCapability is bool && (bool)locationContextCapability)
{
this.locationContext = new RemoteLocationContext(this);
}
}
if (this.capabilities.HasCapability(CapabilityType.SupportsWebStorage))
{
object webContextCapability = this.capabilities.GetCapability(CapabilityType.SupportsWebStorage);
if (webContextCapability is bool && (bool)webContextCapability)
{
this.storage = new RemoteWebStorage(this);
}
}
}
示例2: SliderCommandService
public SliderCommandService(ISliderService sliderService, IUnitOfWork unitOfWork, ICommandExecutor executor)
{
_sliderService = sliderService;
_unitOfWork = unitOfWork;
_executor = executor;
_userSession = new UserSession();
}
示例3: CommandExecutorContext
public CommandExecutorContext(ICommandExecutor executor, CommandLine commandLine, CommandTreeNode commandNode, object parameter) : base(executor, null, commandNode, parameter)
{
if(commandLine == null)
throw new ArgumentNullException("commandLine");
_commandLine = commandLine;
}
示例4: CutoffModule
public CutoffModule(IEpisodeService episodeService, IEpisodeCutoffService episodeCutoffService, ISeriesRepository seriesRepository, ICommandExecutor commandExecutor)
: base(episodeService, commandExecutor, "wanted/cutoff")
{
_episodeCutoffService = episodeCutoffService;
_seriesRepository = seriesRepository;
GetResourcePaged = GetCutoffUnmetEpisodes;
}
示例5: Setup
public void Setup()
{
_commandExecutor = MockRepository.GenerateMock<ICommandExecutor>();
_messageManager = MockRepository.GenerateMock<IMessageManager>();
_referrerProvider = MockRepository.GenerateMock<IReferrerProvider>();
_controller = new DummyExecuteController( _commandExecutor, _messageManager, _referrerProvider );
}
示例6: PersonCommandService
public PersonCommandService(IPersonService personService, IUnitOfWork unitOfWork, ICommandExecutor executor)
{
_personService = personService;
_unitOfWork = unitOfWork;
_executor = executor;
_userSession = new UserSession();
}
示例7: ExchangeRateCommandService
public ExchangeRateCommandService(IExchangeRateService exchangeRateService, IUnitOfWork unitOfWork, ICommandExecutor executor)
{
_exchangeRateService = exchangeRateService;
_unitOfWork = unitOfWork;
_executor = executor;
_userSession = new UserSession();
}
示例8: WindowsFeatureService
public WindowsFeatureService(ICommandExecutor commandExecutor, INugetService nugetService, IFileSystem fileSystem)
{
_commandExecutor = commandExecutor;
_nugetService = nugetService;
_fileSystem = fileSystem;
set_cmd_args_dictionaries();
}
示例9: PersonReportService
public PersonReportService(ICommandExecutor executor, IRepository<Domain.Entity.User> userRepository, IPersonService personService)
{
_executor = executor;
_personService = personService;
_userRepository = userRepository;
_userSession = new UserSession();
}
示例10: TypeMemberCommandService
public TypeMemberCommandService(ITypeMemberService typeMemberService, IUnitOfWork unitOfWork, ICommandExecutor executor)
{
_typeMemberService = typeMemberService;
_unitOfWork = unitOfWork;
_executor = executor;
_userSession = new UserSession();
}
示例11: ContentMenuCommandService
public ContentMenuCommandService(IContentMenuService contentMenuService, IUnitOfWork unitOfWork, ICommandExecutor executor)
{
_contentMenuService = contentMenuService;
_unitOfWork = unitOfWork;
_executor = executor;
_userSession = new UserSession();
}
示例12: MissingModule
public MissingModule(IEpisodeService episodeService, ISeriesRepository seriesRepository, ICommandExecutor commandExecutor)
: base(episodeService, commandExecutor, "wanted/missing")
{
_episodeService = episodeService;
_seriesRepository = seriesRepository;
GetResourcePaged = GetMissingEpisodes;
}
示例13: RedownloadFailedDownloadService
public RedownloadFailedDownloadService(IConfigService configService, IEpisodeService episodeService, ICommandExecutor commandExecutor, Logger logger)
{
_configService = configService;
_episodeService = episodeService;
_commandExecutor = commandExecutor;
_logger = logger;
}
示例14: WebSiteLinkCommandService
public WebSiteLinkCommandService(IWebSiteLinkService webSiteLinkService, IUnitOfWork unitOfWork, ICommandExecutor executor)
{
_webSiteLinkService = webSiteLinkService;
_unitOfWork = unitOfWork;
_executor = executor;
_userSession = new UserSession();
}
示例15: CommandServicePresenter
public CommandServicePresenter(IView view, IService service,
ICommandExecutor executor)
{
_view = view;
_service = service;
_executor = executor;
}