public static void Setup(AppConfig item) {
     SetTestRepo();
     _testRepo._items.Add(item);
 }
 public static void Setup(int testItems) {
     SetTestRepo();
     for(int i=0;i<testItems;i++){
         AppConfig item=new AppConfig();
         _testRepo._items.Add(item);
     }
 }
 /// <summary>
 /// Saves the specified property name.
 /// </summary>
 /// <param name="propertyName">Name of the property.</param>
 /// <param name="moduleName">Name of the module.</param>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public static bool Save(string propertyName, string moduleName, string value) 
 {
     try
     {
         AppConfig config = new AppConfig();
         config.Name = propertyName;
         config.Module = moduleName;
         config.Value = value;
         config.Description = propertyName;
         config.Save();
     }
     catch (Exception ex)
     {
         log.Error(string.Format("Error saving property [{0}], module [{1}], value [{2}]", propertyName, moduleName, value), ex);
         return false;
     }
     return true;
 }