diff --git a/specs/MeuPonto.Specs/StepDefinitions/BackupComprovantesStepDefinitions.cs b/specs/MeuPonto.Specs/StepDefinitions/BackupComprovantesStepDefinitions.cs index 5cfea361..f8bf56fa 100644 --- a/specs/MeuPonto.Specs/StepDefinitions/BackupComprovantesStepDefinitions.cs +++ b/specs/MeuPonto.Specs/StepDefinitions/BackupComprovantesStepDefinitions.cs @@ -80,14 +80,14 @@ public async Task GivenQueOTrabalhadorTemUmComprovanteDePontoGuardadoComAData(Da var transaction = new TransactionContext(userId.ToString()); - var ponto = RegistroPontosService.CriaPonto(transaction); + var ponto = RegistroPontosFacade.CriaPonto(transaction); _gestaoContratos.Contrato.QualificaPonto(ponto); ponto.DataHora = data; ponto.MomentoId = MomentoEnum.Entrada; - var comprovante = BackupComprovantesService.CriaComprovante(transaction); + var comprovante = BackupComprovantesFacade.CriaComprovante(transaction); comprovante.ComprovaPonto(ponto); diff --git a/specs/MeuPonto.Specs/StepDefinitions/GestaoFolhasStepDefinitions.cs b/specs/MeuPonto.Specs/StepDefinitions/GestaoFolhasStepDefinitions.cs index c258749b..5a511f64 100644 --- a/specs/MeuPonto.Specs/StepDefinitions/GestaoFolhasStepDefinitions.cs +++ b/specs/MeuPonto.Specs/StepDefinitions/GestaoFolhasStepDefinitions.cs @@ -79,7 +79,7 @@ public async Task GivenQueOTrabalhadorRegistrouAEntradaNoExpedienteAs(DateTime e var contrato = _db.Contratos.FirstOrDefault(); - var pontoEntrada = RegistroPontosService.CriaPonto(transaction); + var pontoEntrada = RegistroPontosFacade.CriaPonto(transaction); contrato.QualificaPonto(pontoEntrada); @@ -99,7 +99,7 @@ public async Task GivenQueOTrabalhadorRegistrouASaidaNoExpedienteAs(DateTime sai var contrato = _db.Contratos.FirstOrDefault(); - var pontoSaida = RegistroPontosService.CriaPonto(transaction); + var pontoSaida = RegistroPontosFacade.CriaPonto(transaction); contrato.QualificaPonto(pontoSaida); @@ -153,7 +153,7 @@ public async Task GivenQueOsPontosRegistradosForam(Table table) var momento = (MomentoEnum)Enum.Parse(typeof(MomentoEnum), row["momento"]); - var ponto = RegistroPontosService.CriaPonto(transaction); + var ponto = RegistroPontosFacade.CriaPonto(transaction); _gestaoContratos.Contrato.QualificaPonto(ponto); diff --git a/specs/MeuPonto.Specs/Support/SeedHook.cs b/specs/MeuPonto.Specs/Support/SeedHook.cs index c3d2d79f..ddda65a6 100644 --- a/specs/MeuPonto.Specs/Support/SeedHook.cs +++ b/specs/MeuPonto.Specs/Support/SeedHook.cs @@ -37,7 +37,7 @@ public void SetupTestUsers( var trabalhador = TrabalhadorFactory.CriaTrabalhador(transaction); - var contrato = GestaoContratosService.InciarAberturaContrato(transaction); + var contrato = GestaoContratosFacade.InciarAberturaContrato(transaction); contrato.Nome = userName; contrato.Ativo = true; @@ -84,13 +84,13 @@ public void SetupTestUsers( gestaoContratos.Inicia(contrato); - var ponto = RegistroPontosService.CriaPonto(transaction); + var ponto = RegistroPontosFacade.CriaPonto(transaction); ponto.MomentoId = MomentoEnum.Entrada; registroPontos.Inicia(ponto); - var comprovante = BackupComprovantesService.CriaComprovante(transaction); + var comprovante = BackupComprovantesFacade.CriaComprovante(transaction); backupComprovantes.Inicia(comprovante); @@ -100,7 +100,7 @@ public void SetupTestUsers( var competencia = new DateTime(hoje.Year, hoje.Month, 1); - var folha = GestaoFolhaService.IniciarAberturaFolha(transaction); + var folha = GestaoFolhaFacade.IniciarAberturaFolha(transaction); folha.AssociarAo(contrato); diff --git a/specs/MeuPonto.UseCases/StepDefinitions/BackupComprovantesStepDefinitions.cs b/specs/MeuPonto.UseCases/StepDefinitions/BackupComprovantesStepDefinitions.cs index 5cfea361..f8bf56fa 100644 --- a/specs/MeuPonto.UseCases/StepDefinitions/BackupComprovantesStepDefinitions.cs +++ b/specs/MeuPonto.UseCases/StepDefinitions/BackupComprovantesStepDefinitions.cs @@ -80,14 +80,14 @@ public async Task GivenQueOTrabalhadorTemUmComprovanteDePontoGuardadoComAData(Da var transaction = new TransactionContext(userId.ToString()); - var ponto = RegistroPontosService.CriaPonto(transaction); + var ponto = RegistroPontosFacade.CriaPonto(transaction); _gestaoContratos.Contrato.QualificaPonto(ponto); ponto.DataHora = data; ponto.MomentoId = MomentoEnum.Entrada; - var comprovante = BackupComprovantesService.CriaComprovante(transaction); + var comprovante = BackupComprovantesFacade.CriaComprovante(transaction); comprovante.ComprovaPonto(ponto); diff --git a/specs/MeuPonto.UseCases/StepDefinitions/GestaoFolhasStepDefinitions.cs b/specs/MeuPonto.UseCases/StepDefinitions/GestaoFolhasStepDefinitions.cs index c258749b..5a511f64 100644 --- a/specs/MeuPonto.UseCases/StepDefinitions/GestaoFolhasStepDefinitions.cs +++ b/specs/MeuPonto.UseCases/StepDefinitions/GestaoFolhasStepDefinitions.cs @@ -79,7 +79,7 @@ public async Task GivenQueOTrabalhadorRegistrouAEntradaNoExpedienteAs(DateTime e var contrato = _db.Contratos.FirstOrDefault(); - var pontoEntrada = RegistroPontosService.CriaPonto(transaction); + var pontoEntrada = RegistroPontosFacade.CriaPonto(transaction); contrato.QualificaPonto(pontoEntrada); @@ -99,7 +99,7 @@ public async Task GivenQueOTrabalhadorRegistrouASaidaNoExpedienteAs(DateTime sai var contrato = _db.Contratos.FirstOrDefault(); - var pontoSaida = RegistroPontosService.CriaPonto(transaction); + var pontoSaida = RegistroPontosFacade.CriaPonto(transaction); contrato.QualificaPonto(pontoSaida); @@ -153,7 +153,7 @@ public async Task GivenQueOsPontosRegistradosForam(Table table) var momento = (MomentoEnum)Enum.Parse(typeof(MomentoEnum), row["momento"]); - var ponto = RegistroPontosService.CriaPonto(transaction); + var ponto = RegistroPontosFacade.CriaPonto(transaction); _gestaoContratos.Contrato.QualificaPonto(ponto); diff --git a/specs/MeuPonto.UseCases/Support/SeedHook.cs b/specs/MeuPonto.UseCases/Support/SeedHook.cs index c3d2d79f..ddda65a6 100644 --- a/specs/MeuPonto.UseCases/Support/SeedHook.cs +++ b/specs/MeuPonto.UseCases/Support/SeedHook.cs @@ -37,7 +37,7 @@ public void SetupTestUsers( var trabalhador = TrabalhadorFactory.CriaTrabalhador(transaction); - var contrato = GestaoContratosService.InciarAberturaContrato(transaction); + var contrato = GestaoContratosFacade.InciarAberturaContrato(transaction); contrato.Nome = userName; contrato.Ativo = true; @@ -84,13 +84,13 @@ public void SetupTestUsers( gestaoContratos.Inicia(contrato); - var ponto = RegistroPontosService.CriaPonto(transaction); + var ponto = RegistroPontosFacade.CriaPonto(transaction); ponto.MomentoId = MomentoEnum.Entrada; registroPontos.Inicia(ponto); - var comprovante = BackupComprovantesService.CriaComprovante(transaction); + var comprovante = BackupComprovantesFacade.CriaComprovante(transaction); backupComprovantes.Inicia(comprovante); @@ -100,7 +100,7 @@ public void SetupTestUsers( var competencia = new DateTime(hoje.Year, hoje.Month, 1); - var folha = GestaoFolhaService.IniciarAberturaFolha(transaction); + var folha = GestaoFolhaFacade.IniciarAberturaFolha(transaction); folha.AssociarAo(contrato); diff --git a/src/MeuPonto.Web/Pages/Contratos/Criar.cshtml.cs b/src/MeuPonto.Web/Pages/Contratos/Criar.cshtml.cs index d1a05fc7..83944804 100644 --- a/src/MeuPonto.Web/Pages/Contratos/Criar.cshtml.cs +++ b/src/MeuPonto.Web/Pages/Contratos/Criar.cshtml.cs @@ -24,7 +24,7 @@ public IActionResult OnGet() { var transaction = User.CreateTransaction(); - AberturaContrato = GestaoContratosService.InciarAberturaContrato(transaction); + AberturaContrato = GestaoContratosFacade.InciarAberturaContrato(transaction); ViewData["EmpregadorId"] = new SelectList(_db.Empregadores.Where(x => x.UserId == User.GetUserId()), "Id", "Nome").AddEmptyValue(); diff --git a/src/MeuPonto.Web/Pages/Pontos/Comprovantes/Criar.cshtml.cs b/src/MeuPonto.Web/Pages/Pontos/Comprovantes/Criar.cshtml.cs index a49b5b57..a69cf701 100644 --- a/src/MeuPonto.Web/Pages/Pontos/Comprovantes/Criar.cshtml.cs +++ b/src/MeuPonto.Web/Pages/Pontos/Comprovantes/Criar.cshtml.cs @@ -32,7 +32,7 @@ public async Task OnGet() { var transaction = User.CreateTransaction(); - Comprovante = BackupComprovantesService.CriaComprovante(transaction); + Comprovante = BackupComprovantesFacade.CriaComprovante(transaction); var ponto = await _db.Pontos .Include(x => x.Contrato) diff --git a/src/MeuPonto.Web/Pages/Pontos/Comprovantes/Guardar.cshtml.cs b/src/MeuPonto.Web/Pages/Pontos/Comprovantes/Guardar.cshtml.cs index 78c88590..a11d765a 100644 --- a/src/MeuPonto.Web/Pages/Pontos/Comprovantes/Guardar.cshtml.cs +++ b/src/MeuPonto.Web/Pages/Pontos/Comprovantes/Guardar.cshtml.cs @@ -33,7 +33,7 @@ public IActionResult OnGet() { var transaction = User.CreateTransaction(); - Comprovante = BackupComprovantesService.CriaComprovante(transaction); + Comprovante = BackupComprovantesFacade.CriaComprovante(transaction); Comprovante.TipoImagemId = TipoImagemEnum.Original; diff --git a/src/MeuPonto.Web/Pages/Pontos/Marcar.cshtml.cs b/src/MeuPonto.Web/Pages/Pontos/Marcar.cshtml.cs index 7acf2ffa..bf0b5189 100644 --- a/src/MeuPonto.Web/Pages/Pontos/Marcar.cshtml.cs +++ b/src/MeuPonto.Web/Pages/Pontos/Marcar.cshtml.cs @@ -29,7 +29,7 @@ public IActionResult OnGet() { var transaction = User.CreateTransaction(); - Ponto = RegistroPontosService.CriaPonto(transaction); + Ponto = RegistroPontosFacade.CriaPonto(transaction); Ponto.DataHora = _dateTimeSnapshot.GetDateTimeUntilMinutes(); diff --git a/src/MeuPonto.WebApi/Services/BackupComprovantesService.cs b/src/MeuPonto.WebApi/Features/BackupComprovantesFacade.cs similarity index 92% rename from src/MeuPonto.WebApi/Services/BackupComprovantesService.cs rename to src/MeuPonto.WebApi/Features/BackupComprovantesFacade.cs index 9913669d..017bbb63 100644 --- a/src/MeuPonto.WebApi/Services/BackupComprovantesService.cs +++ b/src/MeuPonto.WebApi/Features/BackupComprovantesFacade.cs @@ -1,9 +1,9 @@ using MeuPonto.Models; using System.Transactions; -namespace MeuPonto.Services; +namespace MeuPonto.Features; -public static class BackupComprovantesService +public static class BackupComprovantesFacade { public static Comprovante CriaComprovante(TransactionContext transaction) { diff --git a/src/MeuPonto.WebApi/Services/CadastroEmpregadoresService.cs b/src/MeuPonto.WebApi/Features/CadastroEmpregadoresFacade.cs similarity index 87% rename from src/MeuPonto.WebApi/Services/CadastroEmpregadoresService.cs rename to src/MeuPonto.WebApi/Features/CadastroEmpregadoresFacade.cs index 9b5d5586..433fa8dd 100644 --- a/src/MeuPonto.WebApi/Services/CadastroEmpregadoresService.cs +++ b/src/MeuPonto.WebApi/Features/CadastroEmpregadoresFacade.cs @@ -1,9 +1,9 @@ using MeuPonto.Models; using System.Transactions; -namespace MeuPonto.Services; +namespace MeuPonto.Features; -public static class CadastroEmpregadoresService +public static class CadastroEmpregadoresFacade { public static Empregador CriaEmpregador(TransactionContext transaction) { diff --git a/src/MeuPonto.WebApi/Services/GestaoContratosService.cs b/src/MeuPonto.WebApi/Features/GestaoContratosFacade.cs similarity index 94% rename from src/MeuPonto.WebApi/Services/GestaoContratosService.cs rename to src/MeuPonto.WebApi/Features/GestaoContratosFacade.cs index 5f01e143..b1284b41 100644 --- a/src/MeuPonto.WebApi/Services/GestaoContratosService.cs +++ b/src/MeuPonto.WebApi/Features/GestaoContratosFacade.cs @@ -1,9 +1,9 @@ using MeuPonto.Models; using System.Transactions; -namespace MeuPonto.Services; +namespace MeuPonto.Features; -public static class GestaoContratosService +public static class GestaoContratosFacade { public static Contrato InciarAberturaContrato(TransactionContext transaction) { diff --git a/src/MeuPonto.WebApi/Services/GestaoFolhasService.cs b/src/MeuPonto.WebApi/Features/GestaoFolhaFacade.cs similarity index 87% rename from src/MeuPonto.WebApi/Services/GestaoFolhasService.cs rename to src/MeuPonto.WebApi/Features/GestaoFolhaFacade.cs index f032ef56..d44547bb 100644 --- a/src/MeuPonto.WebApi/Services/GestaoFolhasService.cs +++ b/src/MeuPonto.WebApi/Features/GestaoFolhaFacade.cs @@ -1,9 +1,9 @@ using MeuPonto.Models; using System.Transactions; -namespace MeuPonto.Services; +namespace MeuPonto.Features; -public static class GestaoFolhasService +public static class GestaoFolhaFacade { public static Folha CriaFolha(TransactionContext transaction) { diff --git a/src/MeuPonto.WebApi/Services/RegistroPontosService.cs b/src/MeuPonto.WebApi/Features/RegistroPontosFacade.cs similarity index 91% rename from src/MeuPonto.WebApi/Services/RegistroPontosService.cs rename to src/MeuPonto.WebApi/Features/RegistroPontosFacade.cs index ed73da6e..4e458f81 100644 --- a/src/MeuPonto.WebApi/Services/RegistroPontosService.cs +++ b/src/MeuPonto.WebApi/Features/RegistroPontosFacade.cs @@ -1,9 +1,9 @@ using MeuPonto.Models; using System.Transactions; -namespace MeuPonto.Services; +namespace MeuPonto.Features; -public static class RegistroPontosService +public static class RegistroPontosFacade { public static Ponto CriaPonto(TransactionContext transaction) { diff --git a/src/Timesheet.DocumentModel/Features/BackupComprovantes/BackupComprovantesService.cs b/src/Timesheet.DocumentModel/Features/BackupComprovantes/BackupComprovantesService.cs deleted file mode 100644 index 066babda..00000000 --- a/src/Timesheet.DocumentModel/Features/BackupComprovantes/BackupComprovantesService.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System.Transactions; -using Timesheet.Models.Pontos; - -namespace Timesheet.Features.BackupComprovantes; - -public static class BackupComprovantesService -{ - public static Comprovante CriaComprovante(TransactionContext transaction, Guid? id = null) - { - var comprovante = new Comprovante - { - Id = id ?? Guid.NewGuid(), - UserId = transaction.UserId, - PartitionKey = $"{transaction.UserId}", - CreationDate = transaction.DateTime - }; - - return comprovante; - } - - public static void RecontextualizaComprovante(this Comprovante comprovante, TransactionContext transaction, Guid? id = null) - { - comprovante.Id ??= id ?? Guid.NewGuid(); - comprovante.UserId = transaction.UserId; - //comprovante.PartitionKey = $"{transaction.UserId}|{comprovante.Ponto.DataHora:yyyy}"; - comprovante.CreationDate ??= transaction.DateTime; - } - - public static void ComprovaPonto(this Comprovante comprovante, Ponto ponto) - { - comprovante.Ponto = new PontoRef - { - ContratoId = ponto.ContratoId, - DataHora = ponto.DataHora, - Contrato = ponto.Contrato, - MomentoId = ponto.MomentoId, - PausaId = ponto.PausaId - }; - - comprovante.PartitionKey = $"{comprovante.UserId}|{comprovante.Ponto.DataHora:yyyy}"; - - comprovante.PontoId = ponto.Id; - } -} diff --git a/src/Timesheet.DocumentModel/Features/CadastroEmpregadores/CadastroEmpregadoresService.cs b/src/Timesheet.DocumentModel/Features/CadastroEmpregadores/CadastroEmpregadoresFacade.cs similarity index 94% rename from src/Timesheet.DocumentModel/Features/CadastroEmpregadores/CadastroEmpregadoresService.cs rename to src/Timesheet.DocumentModel/Features/CadastroEmpregadores/CadastroEmpregadoresFacade.cs index a1fa0ca2..6fce84f1 100644 --- a/src/Timesheet.DocumentModel/Features/CadastroEmpregadores/CadastroEmpregadoresService.cs +++ b/src/Timesheet.DocumentModel/Features/CadastroEmpregadores/CadastroEmpregadoresFacade.cs @@ -3,7 +3,7 @@ namespace Timesheet.Features.CadastroEmpregadores; -public static class CadastroEmpregadoresService +public static class CadastroEmpregadoresFacade { public static Empregador CriaEmpregador(TransactionContext transaction, Guid? id = null) { diff --git a/src/Timesheet.DocumentModel/Features/GestaoContratos/GestaoContratosService.cs b/src/Timesheet.DocumentModel/Features/GestaoContratos/GestaoContratosFacade.cs similarity index 97% rename from src/Timesheet.DocumentModel/Features/GestaoContratos/GestaoContratosService.cs rename to src/Timesheet.DocumentModel/Features/GestaoContratos/GestaoContratosFacade.cs index 89338d4b..7b0d1227 100644 --- a/src/Timesheet.DocumentModel/Features/GestaoContratos/GestaoContratosService.cs +++ b/src/Timesheet.DocumentModel/Features/GestaoContratos/GestaoContratosFacade.cs @@ -3,7 +3,7 @@ namespace Timesheet.Features.GestaoContratos; -public static class GestaoContratosService +public static class GestaoContratosFacade { public static Contrato InciarAberturaContrato(TransactionContext transaction, Guid? id = null) { diff --git a/src/Timesheet.DocumentModel/Features/GestaoFolha/GestaoFolhaService.cs b/src/Timesheet.DocumentModel/Features/GestaoFolha/GestaoFolhaFacade.cs similarity index 98% rename from src/Timesheet.DocumentModel/Features/GestaoFolha/GestaoFolhaService.cs rename to src/Timesheet.DocumentModel/Features/GestaoFolha/GestaoFolhaFacade.cs index 189713f9..fb375fb9 100644 --- a/src/Timesheet.DocumentModel/Features/GestaoFolha/GestaoFolhaService.cs +++ b/src/Timesheet.DocumentModel/Features/GestaoFolha/GestaoFolhaFacade.cs @@ -5,7 +5,7 @@ namespace Timesheet.Features.GestaoFolha; -public static class GestaoFolhaService +public static class GestaoFolhaFacade { public static Folha IniciarAberturaFolha(this TransactionContext transaction, Guid? id = null) { diff --git a/src/Timesheet.DocumentModel/Features/RegistroPontos/RegistroPontosService.cs b/src/Timesheet.DocumentModel/Features/RegistroPontos/RegistroPontosFacade.cs similarity index 96% rename from src/Timesheet.DocumentModel/Features/RegistroPontos/RegistroPontosService.cs rename to src/Timesheet.DocumentModel/Features/RegistroPontos/RegistroPontosFacade.cs index fe2234a5..d6f90fde 100644 --- a/src/Timesheet.DocumentModel/Features/RegistroPontos/RegistroPontosService.cs +++ b/src/Timesheet.DocumentModel/Features/RegistroPontos/RegistroPontosFacade.cs @@ -4,7 +4,7 @@ namespace Timesheet.Features.RegistroPontos; -public static class RegistroPontosService +public static class RegistroPontosFacade { public static Ponto CriaPonto(TransactionContext transaction, Guid? id = null) { diff --git a/src/Timesheet.GlobalTableModel/Features/BackupComprovantes/BackupComprovantesService.cs b/src/Timesheet.GlobalTableModel/Features/BackupComprovantes/BackupComprovantesFacade.cs similarity index 95% rename from src/Timesheet.GlobalTableModel/Features/BackupComprovantes/BackupComprovantesService.cs rename to src/Timesheet.GlobalTableModel/Features/BackupComprovantes/BackupComprovantesFacade.cs index a3098f49..1215d298 100644 --- a/src/Timesheet.GlobalTableModel/Features/BackupComprovantes/BackupComprovantesService.cs +++ b/src/Timesheet.GlobalTableModel/Features/BackupComprovantes/BackupComprovantesFacade.cs @@ -3,7 +3,7 @@ namespace Timesheet.Features.BackupComprovantes; -public static class BackupComprovantesService +public static class BackupComprovantesFacade { public static Comprovante CriaComprovante(TransactionContext transaction, Guid? id = null) { diff --git a/src/Timesheet.GlobalTableModel/Features/CadastroEmpregadores/CadastroEmpregadoresService.cs b/src/Timesheet.GlobalTableModel/Features/CadastroEmpregadores/CadastroEmpregadoresFacade.cs similarity index 94% rename from src/Timesheet.GlobalTableModel/Features/CadastroEmpregadores/CadastroEmpregadoresService.cs rename to src/Timesheet.GlobalTableModel/Features/CadastroEmpregadores/CadastroEmpregadoresFacade.cs index de263cd5..9cb91185 100644 --- a/src/Timesheet.GlobalTableModel/Features/CadastroEmpregadores/CadastroEmpregadoresService.cs +++ b/src/Timesheet.GlobalTableModel/Features/CadastroEmpregadores/CadastroEmpregadoresFacade.cs @@ -3,7 +3,7 @@ namespace Timesheet.Features.CadastroEmpregadores; -public static class CadastroEmpregadores +public static class CadastroEmpregadoresFacade { public static Empregador CriaEmpregador(TransactionContext transaction, Guid? id = null) { diff --git a/src/Timesheet.GlobalTableModel/Features/GestaoContratos/GestaoContratosService.cs b/src/Timesheet.GlobalTableModel/Features/GestaoContratos/GestaoContratosFacade.cs similarity index 96% rename from src/Timesheet.GlobalTableModel/Features/GestaoContratos/GestaoContratosService.cs rename to src/Timesheet.GlobalTableModel/Features/GestaoContratos/GestaoContratosFacade.cs index 247ca68f..07eb2326 100644 --- a/src/Timesheet.GlobalTableModel/Features/GestaoContratos/GestaoContratosService.cs +++ b/src/Timesheet.GlobalTableModel/Features/GestaoContratos/GestaoContratosFacade.cs @@ -3,7 +3,7 @@ namespace Timesheet.Features.GestaoContratos; -public static class GestaoContratosService +public static class GestaoContratosFacade { public static Contrato InciarAberturaContrato(TransactionContext transaction, Guid? id = null) { diff --git a/src/Timesheet.GlobalTableModel/Features/GestaoFolha/GestaoFolhaService.cs b/src/Timesheet.GlobalTableModel/Features/GestaoFolha/GestaoFolhaFacade.cs similarity index 98% rename from src/Timesheet.GlobalTableModel/Features/GestaoFolha/GestaoFolhaService.cs rename to src/Timesheet.GlobalTableModel/Features/GestaoFolha/GestaoFolhaFacade.cs index d7d5fbdf..f85c648e 100644 --- a/src/Timesheet.GlobalTableModel/Features/GestaoFolha/GestaoFolhaService.cs +++ b/src/Timesheet.GlobalTableModel/Features/GestaoFolha/GestaoFolhaFacade.cs @@ -4,7 +4,7 @@ namespace Timesheet.Features.GestaoFolha; -public static class GestaoFolhaService +public static class GestaoFolhaFacade { public static Folha IniciarAberturaFolha(this TransactionContext transaction, Guid? id = null) { diff --git a/src/Timesheet.GlobalTableModel/Features/RegistroPontos/RegistroPontosService.cs b/src/Timesheet.GlobalTableModel/Features/RegistroPontos/RegistroPontosFacade.cs similarity index 96% rename from src/Timesheet.GlobalTableModel/Features/RegistroPontos/RegistroPontosService.cs rename to src/Timesheet.GlobalTableModel/Features/RegistroPontos/RegistroPontosFacade.cs index 2a95568e..432c0e1b 100644 --- a/src/Timesheet.GlobalTableModel/Features/RegistroPontos/RegistroPontosService.cs +++ b/src/Timesheet.GlobalTableModel/Features/RegistroPontos/RegistroPontosFacade.cs @@ -4,7 +4,7 @@ namespace Timesheet.Features.RegistroPontos; -public static class RegistroPontosService +public static class RegistroPontosFacade { public static Ponto CriaPonto(TransactionContext transaction, Guid? id = null) {