public A2JAuthorBusinessLogicTests()
 {
     dbSettings = Substitute.For<ICosmosDbSettings>();
     dbService = Substitute.For<IBackendDatabaseService>();
     personalizedPlanEngine = Substitute.For<IPersonalizedPlanEngine>();
     a2jAuthor = new A2JAuthorBusinessLogic(dbSettings, dbService, personalizedPlanEngine);
 }
 public CuratedExperienceController(ICuratedExperienceConvertor a2jAuthorBuisnessLogic, ICuratedExperienceBusinessLogic curatedExperienceBusinessLogic,
                                    ISessionManager sessionManager)
 {
     this.a2jAuthorBuisnessLogic         = a2jAuthorBuisnessLogic;
     this.curatedExperienceBusinessLogic = curatedExperienceBusinessLogic;
     this.sessionManager = sessionManager;
 }
Exemplo n.º 3
0
 public AdminBusinessLogic(IDynamicQueries dynamicQueries, ICosmosDbSettings cosmosDbSettings,
                           IBackendDatabaseService backendDatabaseService, IHostingEnvironment hostingEnvironment,
                           ICuratedExperienceConvertor a2jAuthorBuisnessLogic, IAdminSettings adminSettings,
                           ITopicsResourcesBusinessLogic topicsResourcesBusinessLogic)
 {
     this.dynamicQueries               = dynamicQueries;
     this.cosmosDbSettings             = cosmosDbSettings;
     this.backendDatabaseService       = backendDatabaseService;
     this.hostingEnvironment           = hostingEnvironment;
     this.a2jAuthorBuisnessLogic       = a2jAuthorBuisnessLogic;
     this.adminSettings                = adminSettings;
     this.topicsResourcesBusinessLogic = topicsResourcesBusinessLogic;
 }
 public AdminBusinessLogicTests()
 {
     dynamicQueries               = Substitute.For <IDynamicQueries>();
     cosmosDbSettings             = Substitute.For <ICosmosDbSettings>();
     dbService                    = Substitute.For <IBackendDatabaseService>();
     hostingEnvironment           = Substitute.For <IHostingEnvironment>();
     a2jAuthorBuisnessLogic       = Substitute.For <ICuratedExperienceConvertor>();
     adminSettings                = Substitute.For <IAdminSettings>();
     topicsResourcesBusinessLogic = Substitute.For <ITopicsResourcesBusinessLogic>();
     adminBusiness                = new AdminBusinessLogic(dynamicQueries, cosmosDbSettings, dbService, hostingEnvironment, a2jAuthorBuisnessLogic, adminSettings, topicsResourcesBusinessLogic);
     cosmosDbSettings.CuratedExperiencesCollectionId.Returns("CuratedExperiences");
     cosmosDbSettings.GuidedAssistantAnswersCollectionId.Returns("GuidedAssistantAnswers");
     cosmosDbSettings.A2JAuthorDocsCollectionId.Returns("A2JAuthorDocs");
 }