public override void SetUp(ITestContext context) { var runner = context.Retrieve <CommandRunner>(); runner.RunFubu("packages fubu-testing -removeall"); runner.RunFubu("restart fubu-testing"); }
public override void Execute(IStep containerStep, ITestContext context) { var service = context.Retrieve <TService>(); object actualValue = getActualValue(service); cell().RecordActual(actualValue, containerStep, context); }
public override sealed void SetUp(ITestContext context) { // TODO -- later, make this thing be able to swap up the application under test _application = context.Retrieve<IApplicationUnderTest>(); beforeRunning(); }
public override sealed void SetUp(ITestContext context) { // TODO -- later, make this thing be able to swap up the application under test _application = context.Retrieve <IApplicationUnderTest>(); beforeRunning(); }
public override void SetUp(ITestContext context) { _driver = context.Retrieve <Serenity.ApplicationDriver>(); _endpoints = _driver.GetEndpointDriver(); _assetContents = new Cache <string, string>(file => { var url = _driver.AssetUrlFor(file); return(new WebClient().DownloadString(url)); }); }
// "continuation" is only called when and if the Cell class can build/locate // the correct object public void ReadArgument(ITestContext context, IStep step, Action <object> continuation) { if (context == null) { throw new ArgumentNullException("context"); } if (context.Finder.CanBeParsed(_type)) { readArgument(continuation, step, context); } else { continuation(context.Retrieve(_type)); } }
public static void Configure <T>(this ITestContext context, Action <T> configure) { configure(context.Retrieve <T>()); }
public override void SetUp(ITestContext context) { _graph = context.Retrieve<ScriptGraph>(); }
public override void SetUp(ITestContext context) { _graph = context.Retrieve <ScriptGraph>(); }
public override void Execute(IStep containerStep, ITestContext context) { var service = context.Retrieve <TService>(); cell().ReadArgument(context, containerStep, x => execute(service, (TCellType)x)); }
public override void SetUp(ITestContext context) { _users = context.Retrieve <IUserService>(); _users.Clear(); }
public override void SetUp(ITestContext context) { _deploymentSettings = context.Retrieve<DeploymentSettings>(); _deploymentOptions = context.Retrieve<DeploymentOptions>(); var reader = new DeploymentGraphReader(_deploymentSettings); var graph = reader.Read(_deploymentOptions); _plan = new DeploymentPlan(_deploymentOptions, graph); }
public override sealed void SetUp(ITestContext context) { _application = context.Retrieve <IApplicationUnderTest>(); beforeRunning(); }
public override void SetUp(ITestContext context) { _fileSystem = new FileSystem(); _runner = context.Retrieve <CommandRunner>(); removeAnyExistingPackages(); }
public override void SetUp(ITestContext context) { _urls = context.Retrieve <IApplicationUnderTest>().Urls; }
public override void SetUp(ITestContext context) { _users = context.Retrieve<IUserService>(); _users.Clear(); }
public override void SetUp(ITestContext context) { _fileSystem = new FileSystem(); _runner = context.Retrieve<CommandRunner>(); removeAnyExistingPackages(); }
public override sealed void SetUp(ITestContext context) { _application = context.Retrieve<IApplicationUnderTest>(); beforeRunning(); }
public override void SetUp(ITestContext context) { _urls = context.Retrieve<IApplicationUnderTest>().Urls; }
public override void SetUp(ITestContext context) { _nodes = context.Retrieve <MonitoredNodeGroup>(); }
public override void SetUp(ITestContext context) { var runner = context.Retrieve<CommandRunner>(); runner.RunFubu("packages fubu-testing -removeall"); runner.RunFubu("restart fubu-testing"); }
public override void SetUp(ITestContext context) { _nodes = context.Retrieve<MonitoredNodeGroup>(); }