public virtual void Cleanup() { _givenWhenThen = null; _scope.Dispose(); // Enforce to dispose all the components Context.Cleanup(); }
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); }
/// <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); }