コード例 #1
0
        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;
        }
コード例 #2
0
        internal void AddConfigureMethod(string methodName)
        {
            if (ConfigureMethods.ContainsKey(methodName))
            {
                throw new ArgumentException(string.Format("Duplication configureation for method '{0}' detected", methodName));
            }

            ConfigureMethods[methodName] = AlwaysCall;
        }
コード例 #3
0
 internal void ClearMethodConfigurations()
 {
     ConfigureMethods.Clear();
 }