public PersonalizedPlanController(IPersonalizedPlanBusinessLogic personalizedPlan, ICuratedExperienceBusinessLogic curatedExperience, ISessionManager sessionManager) { this.personalizedPlanBusinessLogic = personalizedPlan; this.curatedExperienceBusinessLogic = curatedExperience; this.sessionManager = sessionManager; }
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 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"); }