private MockField GenerateGenderField(int index)
        {
            var fieldValues2 = new MockFieldValueCollection
            {
                new MockFieldValue {
                    Name = "Male", Value = 0.234
                },
                new MockFieldValue {
                    Name = "Female", Value = 1.134
                },
            };

            return(new MockField
            {
                Index = index,
                Category = "Gender",
                Type = FieldType.Scalar,
                Values = fieldValues2
            });
        }
Пример #2
0
        private MockField GenerateBookField(int index)
        {
            var fieldValues2 = new MockFieldValueCollection
            {
                new MockFieldValue {
                    Name = "Books"
                },
                new MockFieldValue {
                    Name = "Magazines"
                },
                new MockFieldValue {
                    Name = "Specialist books"
                }
            };

            return(new MockField
            {
                Index = index,
                Category = "Reading",
                Type = FieldType.MultipleChoiceMultipleBinaryFields,
                Values = fieldValues2,
                Weight = 6
            });
        }
Пример #3
0
        private MockField GenerateEmploymentStatusField(int index)
        {
            var fieldValues2 = new MockFieldValueCollection
            {
                new MockFieldValue {
                    Name = "Study job"
                },
                new MockFieldValue {
                    Name = "Full time"
                },
                new MockFieldValue {
                    Name = "Unemployed"
                },
            };

            return(new MockField
            {
                Index = index,
                Category = "Employment",
                Type = FieldType.MultipleBinaryFields,
                Values = fieldValues2,
                Weight = 3.0D
            });
        }