public ProfileController(IUserProfileBusinessLogic userProfileBusinessLogic, IGenderViewTypeConverter genderTypeConverter, IActivityLevelViewTypeConverter activityLevelViewTypeConverter, IUserContext userContext) { ActivityLevelViewTypeConverter = activityLevelViewTypeConverter; GenderTypeConverter = genderTypeConverter; UserProfileBusinessLogic = userProfileBusinessLogic; UserContext = userContext; }
public ResultController(IUserProfileBusinessLogic userProfileBusinessLogic, IUserIngredientBusinessLogic userIngredientBusinessLogic, IUserContext userContext, IGraphBuilder graphBuilder, IUserWeightBusinessLogic userWeightBusinessLogic, IGraphLineOptionViewTypeConverter graphLineOptionViewTypeConverter) { this.graphLineOptionViewTypeConverter = graphLineOptionViewTypeConverter; this.userIngredientBusinessLogic = userIngredientBusinessLogic; this.userContext = userContext; this.graphBuilder = graphBuilder; this.userWeightBusinessLogic = userWeightBusinessLogic; this.userProfileBusinessLogic = userProfileBusinessLogic; }
public UserRoleBusinessLogic(IDynamicQueries dynamicQueries, ICosmosDbSettings cosmosDbSettings, IUserProfileBusinessLogic userProfileBusinessLogic, IHttpContextAccessor httpContextAccessor, IOptions <AzureAdOptions> azureOptions) { dbClient = dynamicQueries; dbSettings = cosmosDbSettings; dbUserProfile = userProfileBusinessLogic; this.httpContextAccessor = httpContextAccessor; this.azureOptions = azureOptions.Value; }
public UserRoleBusinessLogicTests() { dbClient = Substitute.For <IDynamicQueries>(); dbSettings = Substitute.For <ICosmosDbSettings>(); dbUserProfile = Substitute.For <IUserProfileBusinessLogic>(); httpContextAccessor = Substitute.For <IHttpContextAccessor>(); azureOptions = Substitute.For <IOptions <AzureAdOptions> >(); userRoleBusinessLogic = new UserRoleBusinessLogic(dbClient, dbSettings, dbUserProfile, httpContextAccessor, azureOptions); dbSettings.RolesCollectionId.Returns("UserRole"); }
public ShareBusinessLogic(IDynamicQueries dynamicQueries, ICosmosDbSettings cosmosDbSettings, IBackendDatabaseService backendDatabaseService, IShareSettings shareSettings, IUserProfileBusinessLogic userProfileBusinessLogic, IPersonalizedPlanBusinessLogic personalizedPlanBusinessLogic) { dbClient = dynamicQueries; dbSettings = cosmosDbSettings; dbService = backendDatabaseService; dbShareSettings = shareSettings; dbUserProfile = userProfileBusinessLogic; dbPersonalizedPlan = personalizedPlanBusinessLogic; }
public PersonalizedPlanBusinessLogic(ICosmosDbSettings cosmosDbSettings, IBackendDatabaseService backendDatabaseService, IDynamicQueries dynamicQueries, IUserProfileBusinessLogic userProfileBusinessLogic, IPersonalizedPlanEngine personalizedPlanEngine, IPersonalizedPlanViewModelMapper personalizedPlanViewModelMapper) { this.cosmosDbSettings = cosmosDbSettings; this.backendDatabaseService = backendDatabaseService; this.dynamicQueries = dynamicQueries; this.userProfileBusinessLogic = userProfileBusinessLogic; this.personalizedPlanEngine = personalizedPlanEngine; this.personalizedPlanViewModelMapper = personalizedPlanViewModelMapper; }
public ShareBuisnessLogicTests() { dbService = Substitute.For <IBackendDatabaseService>(); dbSettings = Substitute.For <ICosmosDbSettings>(); dynamicQueries = Substitute.For <IDynamicQueries>(); dbShareSettings = Substitute.For <IShareSettings>(); userProfileBusinessLogic = Substitute.For <IUserProfileBusinessLogic>(); personalizedPlanBusinessLogic = Substitute.For <IPersonalizedPlanBusinessLogic>(); shareBusinessLogic = new ShareBusinessLogic(dynamicQueries, dbSettings, dbService, dbShareSettings, userProfileBusinessLogic, personalizedPlanBusinessLogic); dbSettings.ProfilesCollectionId.Returns("UserProfile"); dbSettings.UserResourcesCollectionId.Returns("UserResource"); dbShareSettings.PermaLinkMaxLength.Returns(7); }
public PersonalizedPlanBussinessLogicTests() { dbService = Substitute.For <IBackendDatabaseService>(); dbSettings = Substitute.For <ICosmosDbSettings>(); dynamicQueries = Substitute.For <IDynamicQueries>(); userProfileBusinessLogic = Substitute.For <IUserProfileBusinessLogic>(); personalizedPlanBusinessLogicSettings = Substitute.For <IPersonalizedPlanBusinessLogic>(); topicsResourcesBusinessLogic = Substitute.For <ITopicsResourcesBusinessLogic>(); personalizedPlanBusinessLogic = new PersonalizedPlanBusinessLogic(dbSettings, dbService, dynamicQueries, userProfileBusinessLogic, personalizedPlanEngine, personalizedPlanViewModelMapper); personalizedPlanBusinessLogicViewModelMapper = new PersonalizedPlanViewModelMapper(dbSettings, dynamicQueries, topicsResourcesBusinessLogic, dbService); dbSettings.ActionPlansCollectionId.Returns("ActionPlans"); dbSettings.A2JAuthorDocsCollectionId.Returns("A2JAuthorDocs"); dbSettings.GuidedAssistantAnswersCollectionId.Returns("GuidedAssistantAnswers"); dbSettings.ProfilesCollectionId.Returns("Profiles"); dbSettings.ResourcesCollectionId.Returns("Resources"); }
public CarbonHydrateRDICalculator(IUserProfileBusinessLogic userProfileBusinessLogic) { this.userProfileBusinessLogic = userProfileBusinessLogic; }
public FatRDICalculator(IUserProfileBusinessLogic userProfileBusinessLogic) { this.userProfileBusinessLogic = userProfileBusinessLogic; }
public UserProfileController(IUserProfileBusinessLogic userProfileBusinessLogic) { this.userProfileBusinessLogic = userProfileBusinessLogic; }
public MineralRDICalculator(INutrientRecommendationBusinessLogic nutrientRecommendationBusinessLogic, IUserProfileBusinessLogic userProfileBusinessLogic) { this.nutrientRecommendationBusinessLogic = nutrientRecommendationBusinessLogic; this.userProfileBusinessLogic = userProfileBusinessLogic; }
private ProfileModel runMethodUnderTest(IUserProfileBusinessLogic userProfileBusinessLogicMock, Func<CarbonFitness.App.Web.Controllers.ProfileController, ActionResult> methodUnderTest) { var profileController = GetProfileController(userProfileBusinessLogicMock, new Mock<IGenderViewTypeConverter>().Object, new Mock<IActivityLevelViewTypeConverter>().Object); return getModel(methodUnderTest, profileController); }
public ActivityLevelViewTypeConverter(IUserProfileBusinessLogic userProfileBusinessLogic, IActivityLevelTypeBusinessLogic activityLevelTypeBusinessLogic) { UserProfileBusinessLogic = userProfileBusinessLogic; ActivityLevelTypeBusinessLogic = activityLevelTypeBusinessLogic; }
public GenderViewTypeConverter(IUserProfileBusinessLogic userProfileBusinessLogic, IGenderTypeBusinessLogic genderTypeBusinessLogic) { UserProfileBusinessLogic = userProfileBusinessLogic; GenderTypeBusinessLogic = genderTypeBusinessLogic; }
private CarbonFitness.App.Web.Controllers.ProfileController GetProfileController(IUserProfileBusinessLogic userProfileBusinessLogicMock, IGenderViewTypeConverter genderViewTypeConverter, IActivityLevelViewTypeConverter activityLevelViewTypeConverter) { return new CarbonFitness.App.Web.Controllers.ProfileController(userProfileBusinessLogicMock, genderViewTypeConverter, activityLevelViewTypeConverter, getSetuppedUserContextMock().Object); }
public EnergyKcalRDICalculator(IUserProfileBusinessLogic userProfileBusinessLogic) { this.userProfileBusinessLogic = userProfileBusinessLogic; }