Exemplo n.º 1
0
 public Field(string fieldName, string publicLabel, string displayName, string fieldType, object fieldValue)
 {
     FieldName = fieldName;
     DisplayName = displayName;
     FieldType = fieldType;
     Value = fieldValue;
     Values = new List<object>();
     AvailableFields = new List<Field>();
     FieldColumns = new List<FieldColumn>();
     Options = new List<KeyValuePair<object, object>>();
     Settings = new List<Setting>();
     FilterSettings = new FilterSettings();
     PublicLabel = publicLabel;
     TrueValue = "True";
     FalseValue = "False";
     TextSize = "Normal";
     ShowLabel = true;
 }
 private FilterSettings CreateTestFilterSettings(string queryStringKey)
 {
     var filterSettings = new FilterSettings
     {
         NumberToShow = 5,
         QueryStringKey = queryStringKey,
         FilterValues = new List<FilterValue>(){
             new FilterValue() { Text = "Test Item 1", Count = 1 },
             new FilterValue() { Text = "Test Item 2", Count = 2 },
             new FilterValue() { Text = "Test Item 3", Count = 3 },
             new FilterValue() { Text = "Test Item 4", Count = 4 },
             new FilterValue() { Text = "Test Item 5", Count = 5 },
             new FilterValue() { Text = "Test Item 6", Count = 6 },
             new FilterValue() { Text = "Test Item 7", Count = 7 },
             new FilterValue() { Text = "Test Item 8", Count = 8 },
             new FilterValue() { Text = "Test Item 9", Count = 9 },
             new FilterValue() { Text = "Test Item 10", Count = 10 }
         }
     };
     return filterSettings;
 }