Example #1
0
        public virtual void Cleanup()
        {
            _givenWhenThen = null;

            _scope.Dispose(); // Enforce to dispose all the components

            Context.Cleanup();
        }
Example #2
0
        private static void Test_Scenario(GivenWhenThen <Student, Result> scenario)
        {
            var processor = new Processor();

            scenario.Given(processor.Insert);
            scenario.When(processor.Run);
            scenario.Then(processor.Select);
        }
Example #3
0
        /// <summary>
        /// Starts a new test plan with the initial when step
        /// </summary>
        /// <param name="step">Then initial when step</param>
        protected IWhenDefinition When(WhenHandler step)
        {
            _givenWhenThen = GivenWhenThen.StartWith(step);

            return(_givenWhenThen);
        }