diff --git a/DigitalData.EmailProfilerDispatcher.API/Controllers/MailController.cs b/DigitalData.EmailProfilerDispatcher.API/Controllers/MailController.cs deleted file mode 100644 index 356122a..0000000 --- a/DigitalData.EmailProfilerDispatcher.API/Controllers/MailController.cs +++ /dev/null @@ -1,60 +0,0 @@ -using DigitalData.Core.API; -using DigitalData.EmailProfilerDispatcher.API.Resources; -using DigitalData.EmailProfilerDispatcher.Application; -using DigitalData.EmailProfilerDispatcher.Application.Contracts; -using DigitalData.EmailProfilerDispatcher.Application.DTOs.EmailOut; -using DigitalData.EmailProfilerDispatcher.Application.Services; -using DigitalData.EmailProfilerDispatcher.Domain.Attributes; -using DigitalData.EmailProfilerDispatcher.Domain.Entities; -using DigitalData.EmailProfilerDispatcher.Infrastructure.Contracts; -using Microsoft.AspNetCore.Mvc; - -namespace DigitalData.EmailProfilerGateway.API.Controllers -{ - public class MailController : CRUDControllerBase - { - public MailController(ILogger logger, IEmailOutService service) : base(logger, service) - { - } - - [HttpGet("fill-out")] - public IActionResult FillOut(string? template = null) - { - template ??= @"Guten Tag [NAME_RECEIVER],
-
- hiermit bestätigen wir Ihnen die erfolgreiche Signatur für den Vorgang '[DOCUMENT_TITLE]'.
- Wenn alle Vertragspartner unterzeichnet haben, erhalten Sie ebenfalls per email ein unterschriebenes Exemplar mit dem Signierungszertifikat! -
- Mit freundlichen Grüßen
-
- [NAME_PORTAL]"; - - var mailData = new MailData(); - - var expectedOutput = @"Guten Tag Tom,
-
- hiermit bestätigen wir Ihnen die erfolgreiche Signatur für den Vorgang 'Vertragsdokument'.
- Wenn alle Vertragspartner unterzeichnet haben, erhalten Sie ebenfalls per email ein unterschriebenes Exemplar mit dem Signierungszertifikat! -
- Mit freundlichen Grüßen
-
- DokumentenPortal"; - - var result = template.FillTemplate(mailData); - - return Ok(result); - } - - public class MailData - { - [TemplatePlaceholder("[NAME_RECEIVER]")] - public string NameReceiver { get; set; } = "Tom"; - - [TemplatePlaceholder("[DOCUMENT_TITLE]")] - public string DocumentTitle { get; set; } = "Vertragsdokument"; - - [TemplatePlaceholder("[NAME_PORTAL]")] - public string NamePortal { get; set; } = "DokumentenPortal"; - } - } -} diff --git a/DigitalData.EmailProfilerDispatcher.API/DigitalData.EmailProfilerDispatcher.API.csproj b/DigitalData.EmailProfilerDispatcher.API/DigitalData.EmailProfilerDispatcher.API.csproj deleted file mode 100644 index bbea46f..0000000 --- a/DigitalData.EmailProfilerDispatcher.API/DigitalData.EmailProfilerDispatcher.API.csproj +++ /dev/null @@ -1,34 +0,0 @@ - - - - net7.0 - enable - enable - - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - - - diff --git a/DigitalData.EmailProfilerDispatcher.API/Program.cs b/DigitalData.EmailProfilerDispatcher.API/Program.cs deleted file mode 100644 index fcd5d50..0000000 --- a/DigitalData.EmailProfilerDispatcher.API/Program.cs +++ /dev/null @@ -1,40 +0,0 @@ -using DigitalData.Core.API; -using DigitalData.EmailProfilerDispatcher.API.Resources; -using DigitalData.EmailProfilerDispatcher.Application; -using Microsoft.EntityFrameworkCore; -using Microsoft.Extensions.Localization; - -var builder = WebApplication.CreateBuilder(args); - -var config = builder.Configuration; - -// Add services to the container. -builder.Services.AddControllers(); - -builder.Services.AddCookieBasedLocalizer(); -builder.Services.AddDispatcher(options => options.UseSqlServer(config.GetConnectionString("Default"))); - -// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle -builder.Services.AddEndpointsApiExplorer(); -builder.Services.AddSwaggerGen(); - -builder.Services.AddSingleton>(); - -var app = builder.Build(); - -// Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment()) -{ - app.UseSwagger(); - app.UseSwaggerUI(); -} - -app.UseHttpsRedirection(); - -app.UseAuthorization(); - -app.UseCookieBasedLocalizer("de-DE", "en-US"); - -app.MapControllers(); - -app.Run(); diff --git a/DigitalData.EmailProfilerDispatcher.API/Properties/launchSettings.json b/DigitalData.EmailProfilerDispatcher.API/Properties/launchSettings.json deleted file mode 100644 index 1c038ba..0000000 --- a/DigitalData.EmailProfilerDispatcher.API/Properties/launchSettings.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/launchsettings.json", - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:6499", - "sslPort": 44381 - } - }, - "profiles": { - "http": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "launchUrl": "swagger", - "applicationUrl": "http://localhost:5231", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "https": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "launchUrl": "swagger", - "applicationUrl": "https://localhost:7115;http://localhost:5231", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "launchUrl": "swagger", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -} diff --git a/DigitalData.EmailProfilerDispatcher.API/Resources/Resource.cs b/DigitalData.EmailProfilerDispatcher.API/Resources/Resource.cs deleted file mode 100644 index 820e607..0000000 --- a/DigitalData.EmailProfilerDispatcher.API/Resources/Resource.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace DigitalData.EmailProfilerDispatcher.API.Resources -{ - public class Resource - { - } -} diff --git a/DigitalData.EmailProfilerDispatcher.API/Resources/Resource.de-DE.resx b/DigitalData.EmailProfilerDispatcher.API/Resources/Resource.de-DE.resx deleted file mode 100644 index 4fdb1b6..0000000 --- a/DigitalData.EmailProfilerDispatcher.API/Resources/Resource.de-DE.resx +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/DigitalData.EmailProfilerDispatcher.API/Resources/Resource.en-US.resx b/DigitalData.EmailProfilerDispatcher.API/Resources/Resource.en-US.resx deleted file mode 100644 index 4fdb1b6..0000000 --- a/DigitalData.EmailProfilerDispatcher.API/Resources/Resource.en-US.resx +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/DigitalData.EmailProfilerDispatcher.API/appsettings.Development.json b/DigitalData.EmailProfilerDispatcher.API/appsettings.Development.json deleted file mode 100644 index 0c208ae..0000000 --- a/DigitalData.EmailProfilerDispatcher.API/appsettings.Development.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} diff --git a/DigitalData.EmailProfilerDispatcher.API/appsettings.json b/DigitalData.EmailProfilerDispatcher.API/appsettings.json deleted file mode 100644 index 338fb1e..0000000 --- a/DigitalData.EmailProfilerDispatcher.API/appsettings.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*", - "ConnectionStrings": { - "Default": "Server=SDD-VMP04-SQL17\\DD_DEVELOP01;Database=DD_ECM;User Id=sa;Password=dd;Encrypt=false;TrustServerCertificate=True;" - } -}