public IEnumerable <LocationType> TestPopulateSomeLocationTypes() { int NewItemId = 0; string Msg = ""; //TEST Add "Business" location type with 2 properties var NewItem1 = new LocationType(); NewItem1.Name = "Business"; NewItem1.AddProperty("BusinessWebsite", "Business Website URL", uLocate.Constants.DataTypeId.TextBox); NewItem1.AddProperty("BusinessHours", "Hours of Operation", uLocate.Constants.DataTypeId.TextBoxMultiple); Repositories.LocationTypeRepo.Insert(NewItem1); Msg += string.Format("Type '{0}' added. ", NewItem1.Name); //TEST Add "Shopping Center" location type with 2 properties var NewItem2 = new LocationType(); NewItem2.Name = "Shopping Center"; NewItem2.AddProperty("SCName", "Shopping Center Name", uLocate.Constants.DataTypeId.TextBox); NewItem2.AddProperty("SCHours", "Hours of Operation", uLocate.Constants.DataTypeId.TextBoxMultiple); Repositories.LocationTypeRepo.Insert(NewItem2); Msg += string.Format("Type '{0}' added. ", NewItem2.Name); //TEST: Return all Location Types var Result = Repositories.LocationTypeRepo.GetAll(); return(Result); }