public void Dispose() { if (context != null) { context.Dispose(); context = null; } }
// This methodc gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ApvAppContext context) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseStatusCodePages(); app.UseCors(builder => builder.WithOrigins("*")); // Enable middleware to serve generated Swagger as a JSON endpoint. app.UseSwagger(); // Enable middleware to serve swagger-ui (HTML, JS, CSS, etc.), specifying the Swagger JSON endpoint. app.UseSwaggerUI(c => { c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1"); }); app.UseMvc(); }
public DBConnectivityTests() { context = TestConfig.getDbContext(); }
public ApvSharedRepository(ApvAppContext context) { _context = context; }
public DBIntegrationTests() { context = TestConfig.getDbContext(); PrepareTestData(); }
public ApvFCRepository(ApvAppContext context) { _context = context; }