/// <summary> /// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. /// </summary> public void Configure( IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory, PersonalityTestDbContext dbContext, DatabaseSeeder seeder) { dbContext.Database.EnsureCreated(); seeder.SeedDatabase(); DatabaseConfiguration.EnsureEventStoreIsCreated(Configuration); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } else { app.UseHsts(); } app.UseCrossOriginResourceSharing(); app.UseSwagger("Personality Test"); app.UseHttpsRedirection(); app.UseMvc(); }
public QuestionOptionRepository(PersonalityTestDbContext dbContext) { _dbContext = dbContext; }
public TestResultRepository(PersonalityTestDbContext dbContext) { _dbContext = dbContext; }