diff --git a/Source/Src/Infrastructure/CleanArchitecture.Infrastructure.Persistence/Contexts/ApplicationDbContext.cs b/Source/Src/Infrastructure/CleanArchitecture.Infrastructure.Persistence/Contexts/ApplicationDbContext.cs index 2c3f3e16..c06c20c2 100644 --- a/Source/Src/Infrastructure/CleanArchitecture.Infrastructure.Persistence/Contexts/ApplicationDbContext.cs +++ b/Source/Src/Infrastructure/CleanArchitecture.Infrastructure.Persistence/Contexts/ApplicationDbContext.cs @@ -11,7 +11,6 @@ namespace CleanArchitecture.Infrastructure.Persistence.Contexts; public class ApplicationDbContext(DbContextOptions options, IAuthenticatedUserService authenticatedUser) : DbContext(options) { - public DbSet Products { get; set; } public override Task SaveChangesAsync(CancellationToken cancellationToken = new CancellationToken()) { diff --git a/Source/Src/Infrastructure/CleanArchitecture.Infrastructure.Resources/Services/Translator.cs b/Source/Src/Infrastructure/CleanArchitecture.Infrastructure.Resources/Services/Translator.cs index 93a38fff..f249c555 100644 --- a/Source/Src/Infrastructure/CleanArchitecture.Infrastructure.Resources/Services/Translator.cs +++ b/Source/Src/Infrastructure/CleanArchitecture.Infrastructure.Resources/Services/Translator.cs @@ -10,14 +10,14 @@ public class Translator : ITranslator { private readonly ResourceManager resourceMessages; - private readonly ResourceManager propertyName; + private readonly ResourceManager resourceGeneral; - public string this[string name] => propertyName.GetString(name, CultureInfo.CurrentCulture) ?? name; + public string this[string name] => resourceGeneral.GetString(name, CultureInfo.CurrentCulture) ?? name; public Translator() { resourceMessages = new ResourceManager(typeof(ResourceMessages).FullName, typeof(ResourceMessages).Assembly); - propertyName = new ResourceManager(typeof(ResourceGeneral).FullName, typeof(ResourceGeneral).Assembly); + resourceGeneral = new ResourceManager(typeof(ResourceGeneral).FullName, typeof(ResourceGeneral).Assembly); } public string GetString(string name) { diff --git a/Source/Src/Presentation/CleanArchitecture.WebApi/Infrastracture/Services/AuthenticatedUserService.cs b/Source/Src/Presentation/CleanArchitecture.WebApi/Infrastracture/Services/AuthenticatedUserService.cs index b461d2c8..f36d0efc 100644 --- a/Source/Src/Presentation/CleanArchitecture.WebApi/Infrastracture/Services/AuthenticatedUserService.cs +++ b/Source/Src/Presentation/CleanArchitecture.WebApi/Infrastracture/Services/AuthenticatedUserService.cs @@ -10,7 +10,6 @@ public AuthenticatedUserService(IHttpContextAccessor httpContextAccessor) { UserId = httpContextAccessor.HttpContext?.User?.FindFirstValue(ClaimTypes.NameIdentifier); UserName = httpContextAccessor.HttpContext?.User?.Identity.Name; - } public string UserId { get; }