Code cleanup variable names

This commit is contained in:
Santhosh S 2023-09-04 15:50:26 -04:00
parent a52f6e0cf9
commit cc4b58d072
6 changed files with 14 additions and 14 deletions

View File

@ -38,16 +38,16 @@ if (app.Environment.IsDevelopment())
using (var serviceScope = app.Services.CreateScope()) using (var serviceScope = app.Services.CreateScope())
{ {
var services = serviceScope.ServiceProvider; var services = serviceScope.ServiceProvider;
var surveyProvider = services.GetRequiredService<IAnswersProvider>(); var answerProvider = services.GetRequiredService<IAnswersProvider>();
surveyProvider.SeedData(); answerProvider.SeedData();
} }
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI( app.UseSwaggerUI(
options => options =>
{ {
//switch for local environment //switch for local environment
//options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
options.SwaggerEndpoint("/answers/swagger/v1/swagger.json","" ); //options.SwaggerEndpoint("/answers/swagger/v1/swagger.json","" );
} ); } );
} }

View File

@ -44,8 +44,8 @@ if (app.Environment.IsDevelopment())
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(options => { app.UseSwaggerUI(options => {
//switch for local environment //switch for local environment
// options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
options.SwaggerEndpoint("/attachments/swagger/v1/swagger.json", ""); // options.SwaggerEndpoint("/attachments/swagger/v1/swagger.json", "");
}); });

View File

@ -35,16 +35,16 @@ if (app.Environment.IsDevelopment())
using (var serviceScope = app.Services.CreateScope()) using (var serviceScope = app.Services.CreateScope())
{ {
var services = serviceScope.ServiceProvider; var services = serviceScope.ServiceProvider;
var surveyProvider = services.GetRequiredService<IEmployeesProvider>(); var employeeProvider = services.GetRequiredService<IEmployeesProvider>();
surveyProvider.SeedData(); employeeProvider.SeedData();
} }
app.UseSwagger(); app.UseSwagger();
app.UseSwaggerUI(options => app.UseSwaggerUI(options =>
{ {
//switch for local environment //switch for local environment
//options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
options.SwaggerEndpoint("/employees/swagger/v1/swagger.json", ""); // options.SwaggerEndpoint("/employees/swagger/v1/swagger.json", "");
}); });
} }

View File

@ -45,8 +45,8 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI(options => app.UseSwaggerUI(options =>
{ {
//switch for local environment //switch for local environment
//options.SwaggerEndpoint("/swagger/v1/swagger.json",""); options.SwaggerEndpoint("/swagger/v1/swagger.json","");
options.SwaggerEndpoint("locations/swagger/v1/swagger.json", ""); //options.SwaggerEndpoint("locations/swagger/v1/swagger.json", "");
}); });

View File

@ -46,7 +46,7 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI(options => { app.UseSwaggerUI(options => {
//switch for local environment //switch for local environment
options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
// options.SwaggerEndpoint("/questions/swagger/v1/swagger.json", ""); // options.SwaggerEndpoint("/questions/swagger/v1/swagger.json", "");
}); });
} }

View File

@ -56,7 +56,7 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI(options => { app.UseSwaggerUI(options => {
//switch for local environment //switch for local environment
options.SwaggerEndpoint("/swagger/v1/swagger.json", ""); options.SwaggerEndpoint("/swagger/v1/swagger.json", "");
// options.SwaggerEndpoint("/surveys/swagger/v1/swagger.json", ""); //options.SwaggerEndpoint("/surveys/swagger/v1/swagger.json", "");
}); });
} }