public void TestCalculateUserCalories(Gender gender, ActivityLevel activityLevel, WeightLoseGain weightLoseGain, double finalresult) { var user = new ApplicationUser { Id = "userId", FirstName = "Test", LastName = "Testov", Age = 20, CurrentWeight = 100, Height = 200, Gender = gender, BirthDate = DateTime.UtcNow.Date, ActivityLevel = activityLevel, WeightLoseGain = weightLoseGain, DailyCalories = 3000, RemainingCalories = 3000, Protein = 200, RemainingProtein = 200, Carbs = 400, RemainingCarbs = 400, Fat = 100, RemainingFat = 100, }; var service = new UsersService( this.userRepository.Object, this.imageRepository.Object); var result = service.CalculateUserCalories(user); Assert.Equal(finalresult, result); }