public UserProfileBusinessLogic(IUserProfileRepository userProfileRepository, IGenderTypeBusinessLogic genderTypeBusinessLogic, IActivityLevelTypeBusinessLogic activityLevelTypeBusinessLogic, ICalorieCalculator calorieCalculator)
 {
     CalorieCalculator = calorieCalculator;
     GenderTypeBusinessLogic = genderTypeBusinessLogic;
     UserProfileRepository = userProfileRepository;
     ActivityLevelTypeBusinessLogic = activityLevelTypeBusinessLogic;
 }
Esempio n. 2
0
        public IronRDIImporter(INutrientBusinessLogic nutrientBusinessLogic, IGenderTypeBusinessLogic genderTypeBusinessLogic)
            : base(nutrientBusinessLogic, genderTypeBusinessLogic)
        {
            WomanRecommendations.Add(createAgeRecommendation(-1, 6, 8));
            WomanRecommendations.Add(createAgeRecommendation(6, 9, 9));

            WomanRecommendations.Add(createAgeRecommendation(10, 13, 11));
            WomanRecommendations.Add(createAgeRecommendation(14, 17, 15));
            WomanRecommendations.Add(createAgeRecommendation(18, 30, 15));
            WomanRecommendations.Add(createAgeRecommendation(31, 60, 15));
            WomanRecommendations.Add(createAgeRecommendation(61, 74, 9));
            WomanRecommendations.Add(createAgeRecommendation(75, 200, 9));

            ManRecommendations.Add(createAgeRecommendation(-1, 6, 8));
            ManRecommendations.Add(createAgeRecommendation(6, 9, 9));
            ManRecommendations.Add(createAgeRecommendation(-1, 10, 8));

            ManRecommendations.Add(createAgeRecommendation(10, 17, 11));
            ManRecommendations.Add(createAgeRecommendation(18, 200, 9));
        }
 public GenderViewTypeConverter(IUserProfileBusinessLogic userProfileBusinessLogic, IGenderTypeBusinessLogic genderTypeBusinessLogic)
 {
     UserProfileBusinessLogic = userProfileBusinessLogic;
     GenderTypeBusinessLogic = genderTypeBusinessLogic;
 }
Esempio n. 4
0
 public BaseRDIImporter(INutrientBusinessLogic nutrientBusinessLogic, IGenderTypeBusinessLogic genderTypeBusinessLogic)
 {
     this.nutrientBusinessLogic = nutrientBusinessLogic;
     this.genderTypeBusinessLogic = genderTypeBusinessLogic;
 }
 public InitialDataValuesExportEngine(INutrientBusinessLogic nutrientBusinessLogic, IGenderTypeBusinessLogic genderTypeBusinessLogic, IActivityLevelTypeBusinessLogic activityLevelTypeBusinessLogic)
 {
     this.activityLevelTypeBusinessLogic = activityLevelTypeBusinessLogic;
     this.nutrientBusinessLogic = nutrientBusinessLogic;
     this.genderTypeBusinessLogic = genderTypeBusinessLogic;
 }