Ejemplo n.º 1
0
        public void Given_an_operation_that_repeats_once()
        {
            _workflow = Workflow <string> .Definition();

            _workflow.Do((s) => s += "Red").Repeat().Once();
            _flow = _workflow as Workflow <string>;
        }
Ejemplo n.º 2
0
        public override void Configure(IDefine <Colour> workflow)
        {
            var doubleSpace = new DoubleSpace();

            workflow
            .Do(doubleSpace)
            .Do <DoubleSpace>(If.Not.Successfull(doubleSpace))
            .Do((c) =>
            {
                Console.WriteLine(c.Name);
                return(c);
            });

            Workflow = workflow as IWorkflow <Colour>;
        }
Ejemplo n.º 3
0
 public void When()
 {
     _flow.Do <DuplicateName>();
 }