public void GivenAListOfRules(Table table) { var rules = table.CreateSet<Rule>(); chain = new Chain(); rules.ToList().ForEach(r => { chain.Add(r); }); chain["Rule 1"].Apply = (c) => c.Amount < 200; chain["Rule 2"].Apply = (c) => c.Amount > 400 && c.Amount < 600; chain["Rule 3"].Apply = (c) => c.Amount > 600 && c.Amount < 800; chain["Rule 4"].Apply = (c) => c.Amount > 800 && c.Amount < 1000; chain["Rule 5"].Apply = (c) => c.Amount > 1000; }