Beispiel #1
0
        /// <summary>
        /// Adds a when step
        /// </summary>
        /// <param name="whenStep">The when step</param>
        public IWhenDefinition When(WhenHandler whenStep)
        {
            whenStep.NotNull(nameof(whenStep));

            _whenSteps.Add(new WhenStep(whenStep));

            return this;
        }
Beispiel #2
0
            public WhenStep(WhenHandler executor)
            {
                executor.NotNull(nameof(executor));

                _executor = executor;
            }