|
|
@ -12,6 +12,8 @@ using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using XUnitDIStudy.Service;
|
|
|
|
|
|
|
|
|
|
|
|
namespace XUnitDIStudy.WebApp
|
|
|
|
namespace XUnitDIStudy.WebApp
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class Startup
|
|
|
|
public class Startup
|
|
|
@ -26,6 +28,9 @@ namespace XUnitDIStudy.WebApp
|
|
|
|
public void ConfigureServices(IServiceCollection services)
|
|
|
|
public void ConfigureServices(IServiceCollection services)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
services.AddControllers();
|
|
|
|
services.AddControllers();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
services.AddScoped<IStudentService, StudentService>();
|
|
|
|
|
|
|
|
|
|
|
|
services.AddSwaggerGen(c =>
|
|
|
|
services.AddSwaggerGen(c =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
c.SwaggerDoc("v1", new OpenApiInfo { Title = "XUnitDIStudy.WebApp", Version = "v1" });
|
|
|
|
c.SwaggerDoc("v1", new OpenApiInfo { Title = "XUnitDIStudy.WebApp", Version = "v1" });
|
|
|
|