protected Spec _addSpec(string name, SpecCallback callback) { if (true == this.specs.ContainsKey(name)) { throw new DuplicateSpecException(name); } this.specs.Add(name, new SpecCallbackEntry(name, callback)); return this; }
public SpecCallbackEntry(string name, SpecCallback c) { this.name = name; this.callback = c; }