Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 89c42ae

Browse files
committed
tests
1 parent 4340b11 commit 89c42ae

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/Backend/JPProject.Admin.Api/Configuration/AdminUiConfiguration.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using AutoMapper;
22
using JPProject.Admin.Application.AutoMapper;
3-
using JPProject.Admin.Infra.Data.Sqlite.Configuration;
43
using JPProject.AspNet.Core;
54
using MediatR;
65
using Microsoft.Extensions.Configuration;
@@ -15,20 +14,20 @@ public static void ConfigureAdminUi(this IServiceCollection services, IConfigura
1514
{
1615
var database = configuration["ApplicationSettings:DatabaseType"].ToUpper();
1716
var connString = configuration.GetConnectionString("SSOConnection");
18-
services.ConfigureJpAdmin<AspNetUser>();
17+
var builder = services.ConfigureJpAdmin<AspNetUser>();
1918
switch (database)
2019
{
2120
case "MYSQL":
22-
services.WithMySql(connString);
21+
builder.WithMySql(connString);
2322
break;
2423
case "SQLSERVER":
25-
services.WithSqlServer(connString);
24+
builder.WithSqlServer(connString);
2625
break;
2726
case "POSTGRESQL":
28-
services.WithPostgreSql(connString);
27+
builder.WithPostgreSql(connString);
2928
break;
3029
case "SQLITE":
31-
services.WithSqlite(connString);
30+
builder.WithSqlite(connString);
3231
break;
3332
}
3433

src/Backend/JPProject.Admin.Api/JPProject.Admin.Api.csproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
1111
<PackageReference Include="Hellang.Middleware.ProblemDetails" Version="3.1.0" />
1212
<PackageReference Include="IdentityServer4.AccessTokenValidation" Version="3.0.1" />
13-
<PackageReference Include="JPProject.Admin.Application" Version="1.0.0" />
14-
<PackageReference Include="JPProject.Admin.Infra.Data.MySql" Version="1.0.0" />
15-
<PackageReference Include="JPProject.Admin.Infra.Data.PostgreSQL" Version="1.0.0" />
16-
<PackageReference Include="JPProject.Admin.Infra.Data.Sql" Version="1.0.0" />
17-
<PackageReference Include="JPProject.Admin.Infra.Data.Sqlite" Version="1.0.0" />
18-
<PackageReference Include="JPProject.AspNet.Core" Version="1.0.0" />
13+
<PackageReference Include="JPProject.Admin.Application" Version="1.0.1-10-30-130325" />
14+
<PackageReference Include="JPProject.Admin.EntityFrameworkCore.MySql" Version="1.0.1-10-30-130325" />
15+
<PackageReference Include="JPProject.Admin.EntityFrameworkCore.PostgreSQL" Version="1.0.1-10-30-130325" />
16+
<PackageReference Include="JPProject.Admin.EntityFrameworkCore.Sql" Version="1.0.1-10-30-130325" />
17+
<PackageReference Include="JPProject.Admin.EntityFrameworkCore.Sqlite" Version="1.0.1-10-30-130325" />
18+
<PackageReference Include="JPProject.AspNet.Core" Version="1.0.1-10-30-130325" />
19+
<PackageReference Include="JPProject.Sso.Application" Version="1.0.1-10-30-130325" />
1920
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
2021
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.8.2" />
2122
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.0.0" />

0 commit comments

Comments
 (0)