Exemplo n.º 1
0
 public void Dispose()
 {
     if (context != null)
     {
         context.Dispose();
         context = null;
     }
 }
Exemplo n.º 2
0
        // 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();
        }
Exemplo n.º 3
0
 public DBConnectivityTests()
 {
     context = TestConfig.getDbContext();
 }
Exemplo n.º 4
0
 public ApvSharedRepository(ApvAppContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public DBIntegrationTests()
 {
     context = TestConfig.getDbContext();
     PrepareTestData();
 }
Exemplo n.º 6
0
 public ApvFCRepository(ApvAppContext context)
 {
     _context = context;
 }