#ifdef WIN32 #include #endif #define BOOST_TEST_MODULE AuthRegistrationExecutors #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; using RouteAuthRegistrationExecutor = AuthRegistrationExecutor, beast::http::string_body>; BOOST_AUTO_TEST_CASE(AuthRegistrationExecutor_Succesful_Login) { auto& args = boost::unit_test::framework::master_test_suite().argc; auto& argv = boost::unit_test::framework::master_test_suite().argv; const std::string mysql_credentials = argv[1]; mysqlx::Session* mysql_session = new mysqlx::Session(mysql_credentials); uad::SetMySqlSession(mysql_session); auto user_dao = make_shared(GetMySqlSession()); auto executor = make_shared(GetMySqlSession(), user_dao); BOOST_CHECK(true == true); mysql_session->close(); delete mysql_session; }