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

Commit f7fdb80

Browse files
committed
bug fix
1 parent 9688e21 commit f7fdb80

5 files changed

Lines changed: 15 additions & 9 deletions

File tree

src/Backend/Jp.Application/ViewModels/ClientsViewModels/SaveClientViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Jp.Domain.Commands.Client;
1+
using Jp.Domain.Commands.Clients;
22
using System.ComponentModel.DataAnnotations;
33

44
namespace Jp.Application.ViewModels.ClientsViewModels

src/Backend/Jp.UserManagement/Configuration/CorsConfig.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ public static IServiceCollection ConfigureCors(this IServiceCollection services)
99
{
1010
services.AddCors(options =>
1111
{
12-
options.AddPolicy("Devlopment",
12+
options.AddPolicy("Development",
1313
builder => builder.AllowAnyOrigin()
1414
.AllowAnyMethod()
1515
.AllowAnyHeader()
1616
.AllowCredentials());
1717
});
18+
1819
return services;
1920
}
2021

2122
public static void UseDefaultCors(this IApplicationBuilder app)
2223
{
23-
app.UseCors("Devlopment");
24+
app.UseCors("Development");
2425
}
26+
2527
}
2628
}

src/Backend/Jp.UserManagement/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public Startup(IHostingEnvironment hostEnvironment, ILogger<Startup> logger)
3838
public void ConfigureServices(IServiceCollection services)
3939
{
4040
services.AddMvc();
41-
41+
4242
// Identity Database
4343
services.ConfigureDatabase(Configuration);
4444

src/Backend/Jp.UserManagement/appsettings.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"ConnectionStrings": {
33
// Postgre Connection
4-
//"SSOConnection": "Server=localhost;Port=5432;Database=jpproject;User Id=postgres;Password=@Password1;"
4+
"SSOConnection": "Server=localhost;Port=5432;Database=jpproject;User Id=postgres;Password=@Password1;"
55
// Sql Server connection
6-
"SSOConnection": "Server=.;Initial Catalog=JpProject;Persist Security Info=False;User ID=sa;Password=@Password1;MultipleActiveResultSets=False;Connection Timeout=30;"
6+
//"SSOConnection": "Server=.;Initial Catalog=JpProject;Persist Security Info=False;User ID=sa;Password=@Password1;MultipleActiveResultSets=False;Connection Timeout=30;"
77
// MySql connection
88
// "SSOConnection": "server=localhost,port=3306;database=jpproject;user=bruno;password=10203040"
99
// SQLite Connection
@@ -32,7 +32,10 @@
3232
"SendEmail": "false"
3333
},
3434
"ApplicationSettings": {
35-
"DatabaseType": "SQLServer",
36-
"Authority": "https://localhost:5001"
35+
"DatabaseType": "PostgreSQL",
36+
"Authority": "https://localhost:5001",
37+
"Cors": "http://*.teste.work",
38+
"UserManagementURL": "http://localhost:4200",
39+
"IS4AdminUi": "http://localhost:4300"
3740
}
3841
}

tests/JpProject.Domain.Tests/CommandHandlers/ClientTests/Fakers/ClientCommandFaker.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ public static Faker<SaveClientCommand> GenerateSaveClientCommand()
1515
f.Internet.Url(),
1616
f.Image.LoremFlickrUrl(),
1717
f.Lorem.Sentence(),
18-
f.PickRandom<ClientType>()
18+
f.PickRandom<ClientType>(),
19+
f.Internet.Url()
1920
));
2021

2122
}

0 commit comments

Comments
 (0)