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

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

            cell().RecordActual(actualValue, containerStep, context);
        }
Exemple #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();
        }
Exemple #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();
        }
Exemple #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));
            });
        }
Exemple #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));
            }
        }
Exemple #7
0
 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>();
 }
Exemple #9
0
 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));
        }
Exemple #11
0
        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);
        }
Exemple #13
0
        public override sealed void SetUp(ITestContext context)
        {
            _application = context.Retrieve <IApplicationUnderTest>();

            beforeRunning();
        }
Exemple #14
0
 public override void SetUp(ITestContext context)
 {
     _fileSystem = new FileSystem();
     _runner     = context.Retrieve <CommandRunner>();
     removeAnyExistingPackages();
 }
Exemple #15
0
 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();
 }
Exemple #18
0
        public override sealed void SetUp(ITestContext context)
        {
            _application = context.Retrieve<IApplicationUnderTest>();

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