From 89d7f62f28258ee253aa61ed41544ecc27db2cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Mon, 6 Oct 2025 08:57:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B3=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=20=D0=B8=D0=BD=D1=82=D0=B5=D0=B3=D1=80=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D0=BE=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=82=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AuthRegistrationExecutor_TEST.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp b/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp index 29dbad6..3ded844 100644 --- a/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp +++ b/tests/endpoint_handlers/AuthRegistrationExecutor_TEST.cpp @@ -7,16 +7,21 @@ #include #include "./../../src/endpoints_handlers/AuthRegistrationExecutor.h" +#include "./../../src/DAO/MySQLUserDAO.h" +#include "./../../src/db/mysql_connector.h" using namespace std; using namespace uad; +using namespace boost; -static boost::beast::http::request_parser parser; -using RouteAuthRegistrationExecutor = AuthRegistrationExecutor< - const std::string, decltype(parser.release()), boost::beast::http::string_body>; +using RouteAuthRegistrationExecutor = AuthRegistrationExecutor, + beast::http::string_body>; BOOST_AUTO_TEST_CASE(AuthRegistrationExecutor_Succesful_Login) { + auto user_dao = make_shared(GetMySqlSession()); + auto executor = make_shared(GetMySqlSession(), user_dao); BOOST_CHECK(true == true); }