Ejemplo n.º 1
0
        private void CreateInterestsAndUserInterests(out List <Interest> interests, out List <UserInterest> userInterests, int numberOfInterests)
        {
            interests     = new List <Interest>();
            userInterests = new List <UserInterest>();
            for (int i = 1; i <= numberOfInterests; i++)
            {
                var interest = Interest.Create("test", "test").Value;
                interest.Id = i;
                var userInterestResult = UserInterest.Create(i);

                interests.Add(interest);
                userInterests.Add(userInterestResult.Value);
            }
        }
Ejemplo n.º 2
0
        private void CreateInterestsAndUserInterests(out List <Interest> interests, out List <UserInterest> userInterests, int[] interestIds)
        {
            interests     = new List <Interest>();
            userInterests = new List <UserInterest>();

            if (interestIds == null)
            {
                return;
            }

            foreach (var i in interestIds)
            {
                var interest = Interest.Create("test", "test").Value;
                interest.Id = i;
                var userInterestResult = UserInterest.Create(i);

                interests.Add(interest);
                userInterests.Add(userInterestResult.Value);
            }
        }