本文整理汇总了C#中ITestContext.Store方法的典型用法代码示例。如果您正苦于以下问题:C# ITestContext.Store方法的具体用法?C# ITestContext.Store怎么用?C# ITestContext.Store使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITestContext
的用法示例。
在下文中一共展示了ITestContext.Store方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterServices
public override void RegisterServices(ITestContext context)
{
base.RegisterServices(context);
var remoteGraph = new RemoteBehaviorGraph(TEST_APPLICATION_ROOT);
context.Store(remoteGraph);
context.Store(_runner);
}
示例2: RegisterServices
public void RegisterServices(ITestContext context)
{
var remoteGraph = new RemoteBehaviorGraph(TEST_APPLICATION_ROOT);
context.Store(remoteGraph);
context.Store(_runner);
context.Store(_application);
}
示例3: SetUp
public override void SetUp(ITestContext context)
{
_settings = new DeploymentSettings("storyteller");
context.Store(_settings);
_writer = new DeploymentWriter("storyteller");
}
示例4: setUp
protected override void setUp(ITestContext context)
{
// Do any necessary bootstrapping just before a test run
// ITestContext is effectively an IoC container, so you
// might be registering your application services here
_system = new SystemUnderTest();
context.Store(_system);
}
示例5: SetUp
public override void SetUp(ITestContext context)
{
MyFoo = new MyFoo();
context.Store(MyFoo);
}
示例6: registerServices
protected override void registerServices(ITestContext context)
{
context.Store<IBrowserDriver>(new SeleniumBrowserDriver());
}
示例7: RegisterServices
public void RegisterServices(ITestContext context)
{
var selenium = new DefaultSelenium("localhost", 4444, @"*firefox C:\Program Files (x86)\Mozilla Firefox\firefox.exe", "http://localhost:60691");
context.Store<IBrowserDriver>(new SeleniumBrowserDriver(selenium));
}