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)); }); }
public override void SetupEnvironment() { base.SetupEnvironment(); // TODO -- make this configurable? _runner = new CommandRunner(); _runner.RunFubu("createvdir src/FubuTestApplication fubu-testing"); _runner.RunFubu("create-pak pak1 pak1.zip -f"); _runner.RunFubu("create-pak pak2 pak2.zip -f"); _runner.RunFubu("create-pak pak3 pak3.zip -f"); _runner.RunFubu("create-pak pak4 pak4.zip -f"); _runner.RunFubu("create-pak spark spark.zip -f"); _application = new ApplicationDriver(); }