internal void UpdateMethodCallCondition(string name, Func <bool> condition) { if (!ConfigureMethods.ContainsKey(name)) { throw new ArgumentException(string.Format("Configuration for method '{0} not found", name)); } ConfigureMethods[name] = condition; }
internal void AddConfigureMethod(string methodName) { if (ConfigureMethods.ContainsKey(methodName)) { throw new ArgumentException(string.Format("Duplication configureation for method '{0}' detected", methodName)); } ConfigureMethods[methodName] = AlwaysCall; }
internal void ClearMethodConfigurations() { ConfigureMethods.Clear(); }