Exemple #1
0
        internal async Task <Scenario> Invoke(BuildableTest testDetails)
        {
            var scenario = new Scenario(ExistingSteps, testDetails);
            await BDTestServiceProvider.ScenarioExecutor.ExecuteAsync(scenario).ConfigureAwait(false);

            return(scenario);
        }
Exemple #2
0
        internal Scenario(List <Step> steps, BuildableTest testDetails)
        {
            Guid            = testDetails.Guid;
            FrameworkTestId = testDetails.TestId;

            RuntimeInformation = new BDTestRuntimeInformation
            {
                CallerFile   = testDetails.CallerFile,
                CallerMember = testDetails.CallerMember,
                BdTestBase   = testDetails.BdTestBase
            };

            TestHolder.NotRun.TryRemove(Guid, out _);
            TestHolder.AddScenario(this);

            StoryText             = testDetails.StoryText;
            ScenarioText          = testDetails.ScenarioText;
            CustomTestInformation = testDetails.CustomTestInformation;

            FileName = testDetails.CallerFile;

            Steps = steps;
        }
Exemple #3
0
 internal RunnableStepBuilder(List <Step> previousSteps, Runnable runnable, BuildableTest previousPartiallyBuiltTest) : base(
         previousSteps,
         runnable,
         previousPartiallyBuiltTest)
 {
 }