public override void SetUp(ITestContext context)
        {
            var runner = context.Retrieve <CommandRunner>();

            runner.RunFubu("packages fubu-testing -removeall");
            runner.RunFubu("restart fubu-testing");
        }
Exemplo n.º 2
0
        public override void Execute(IStep containerStep, ITestContext context)
        {
            var    service     = context.Retrieve <TService>();
            object actualValue = getActualValue(service);

            cell().RecordActual(actualValue, containerStep, context);
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
        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));
            });
        }
Exemplo n.º 6
0
        // "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));
            }
        }
Exemplo n.º 7
0
 public static void Configure <T>(this ITestContext context, Action <T> configure)
 {
     configure(context.Retrieve <T>());
 }
Exemplo n.º 8
0
 public override void SetUp(ITestContext context)
 {
     _graph = context.Retrieve<ScriptGraph>();
 }
Exemplo n.º 9
0
 public override void SetUp(ITestContext context)
 {
     _graph = context.Retrieve <ScriptGraph>();
 }
Exemplo n.º 10
0
        public override void Execute(IStep containerStep, ITestContext context)
        {
            var service = context.Retrieve <TService>();

            cell().ReadArgument(context, containerStep, x => execute(service, (TCellType)x));
        }
Exemplo n.º 11
0
        public override void SetUp(ITestContext context)
        {
            _users = context.Retrieve <IUserService>();

            _users.Clear();
        }
Exemplo n.º 12
0
        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);
        }
Exemplo n.º 13
0
        public override sealed void SetUp(ITestContext context)
        {
            _application = context.Retrieve <IApplicationUnderTest>();

            beforeRunning();
        }
Exemplo n.º 14
0
 public override void SetUp(ITestContext context)
 {
     _fileSystem = new FileSystem();
     _runner     = context.Retrieve <CommandRunner>();
     removeAnyExistingPackages();
 }
Exemplo n.º 15
0
 public override void SetUp(ITestContext context)
 {
     _urls = context.Retrieve <IApplicationUnderTest>().Urls;
 }
Exemplo n.º 16
0
        public override void SetUp(ITestContext context)
        {
            _users = context.Retrieve<IUserService>();

            _users.Clear();
        }
Exemplo n.º 17
0
 public override void SetUp(ITestContext context)
 {
     _fileSystem = new FileSystem();
     _runner = context.Retrieve<CommandRunner>();
     removeAnyExistingPackages();
 }
Exemplo n.º 18
0
        public override sealed void SetUp(ITestContext context)
        {
            _application = context.Retrieve<IApplicationUnderTest>();

            beforeRunning();
        }
Exemplo n.º 19
0
 public override void SetUp(ITestContext context)
 {
     _urls = context.Retrieve<IApplicationUnderTest>().Urls;
 }
Exemplo n.º 20
0
 public override void SetUp(ITestContext context)
 {
     _nodes = context.Retrieve <MonitoredNodeGroup>();
 }
Exemplo n.º 21
0
 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>();
 }