From d23b8b91874a178456379122b01ef9905eba9694 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 25 Nov 2024 13:32:50 +0100 Subject: [PATCH] feat(TestMessagingController): initialized --- .../Test/TestMessagingController.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 EnvelopeGenerator.Web/Controllers/Test/TestMessagingController.cs diff --git a/EnvelopeGenerator.Web/Controllers/Test/TestMessagingController.cs b/EnvelopeGenerator.Web/Controllers/Test/TestMessagingController.cs new file mode 100644 index 00000000..b61e3569 --- /dev/null +++ b/EnvelopeGenerator.Web/Controllers/Test/TestMessagingController.cs @@ -0,0 +1,23 @@ +using EnvelopeGenerator.Application.Contracts; +using Microsoft.AspNetCore.Mvc; + +namespace EnvelopeGenerator.Web.Controllers.Test +{ + [Route("api/[controller]")] + [ApiController] + public class TestMessagingController : ControllerBase + { + private readonly IMessagingService _service; + + public TestMessagingController(IMessagingService service) + { + _service = service; + } + + public async Task SendAsync(string recipient, string message) + { + await _service.SendSmsAsync(recipient: recipient, message: message); + return Ok(); + } + } +} \ No newline at end of file