private IFluentChainer <TEntity> Chain(IChainBehaviour nextBehaviour) { this.behaviour.NextBehaviour = nextBehaviour; nextBehaviour.PreviousBehaviour = this.behaviour; return(new FluentChainer <TEntity>(nextBehaviour, this.fluentAdder)); }
private IFluentChainer <TEntity> AddChain(IChainBehaviour behaviour) { this.Add(behaviour); return(new FluentChainer <TEntity>(behaviour, this)); }
internal FluentChainer(IChainBehaviour behaviour, IFluentAdder <TEntity> fluentAdder) { this.behaviour = behaviour; this.fluentAdder = fluentAdder; }