Ejemplo n.º 1
0
        public Task Visit(GivenFlagStep step)
        {
            var newDuplicationDetection = ValidateName(step.Description.Name);
            var branchTask = Task.CompletedTask;

            if (step.ThenStep is FluentArgsDefinition argsBuilder)
            {
                branchTask = argsBuilder.InitialStep.Accept(newDuplicationDetection);
            }

            return(Task.WhenAll(branchTask, step.GetNextStep().Accept(newDuplicationDetection)));
        }
Ejemplo n.º 2
0
 public Task Visit(GivenFlagStep step)
 {
     ValidateAliases(step.Description.Name.Names);
     return(step.GetNextStep().Accept(this));
 }