generated from Sithas/conan_template
Третий тест покрыт фикстурой
This commit is contained in:
+10
-3
@@ -7,9 +7,15 @@
|
||||
#include <mysqlx/xdevapi.h>
|
||||
#include "./../../src/endpoints_handlers/AuthRegistrationExecutor.h"
|
||||
#include "./../../src/DAO/MySQLUserDAO.h"
|
||||
#include "./../../src/db/mysql_connector.h"
|
||||
|
||||
namespace uad
|
||||
{
|
||||
struct fixture_helper
|
||||
{
|
||||
explicit fixture_helper(mysqlx::Session* session);
|
||||
};
|
||||
|
||||
class AuthRegistrationExecutorTestFixture {
|
||||
public:
|
||||
using RouteAuthRegistrationExecutor = AuthRegistrationExecutor<boost::beast::http::string_body,
|
||||
@@ -20,11 +26,12 @@ public:
|
||||
char** argv;
|
||||
|
||||
const std::string mysql_credentials;
|
||||
|
||||
mysqlx::Session* mysql_session;
|
||||
|
||||
std::shared_ptr<MySQLUserDAO> user_dao;
|
||||
std::unique_ptr<RouteAuthRegistrationExecutor> executor;
|
||||
fixture_helper helper;
|
||||
|
||||
std::shared_ptr<IUserDAO> user_dao;
|
||||
RouteAuthRegistrationExecutor executor;
|
||||
|
||||
Request req;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user