generated from Sithas/conan_template
AuthRefistrationTest - 4 ok 0 fail
This commit is contained in:
Vendored
+12
-18
@@ -17,30 +17,24 @@ namespace uad
|
||||
using Request = boost::beast::http::request<boost::beast::http::string_body,
|
||||
boost::beast::http::basic_fields<std::allocator<char>>>;
|
||||
|
||||
template <class Executor>
|
||||
class AuthFixture {
|
||||
class AuthFixture
|
||||
{
|
||||
public:
|
||||
const std::string uuid = std::to_string(uad::Random());
|
||||
char** argv = boost::unit_test::framework::master_test_suite().argv;
|
||||
const std::string uuid;
|
||||
char** argv;
|
||||
|
||||
const std::string mysql_credentials = argv[1];
|
||||
mysqlx::Session* mysql_session = new mysqlx::Session(mysql_credentials);
|
||||
const std::string mysql_credentials;
|
||||
mysqlx::Session* mysql_session;
|
||||
|
||||
fixture_session_initialization_helper helper = fixture_session_initialization_helper(mysql_session);
|
||||
fixture_session_initialization_helper helper;
|
||||
|
||||
std::shared_ptr<IUserDAO> user_dao = std::make_shared<MySQLUserDAO>(GetMySqlSession());
|
||||
std::shared_ptr<MemoryAuthDAO> auth_dao = std::make_shared<MemoryAuthDAO>(GetMySqlSession());
|
||||
Executor executor = Executor(GetMySqlSession(), user_dao);
|
||||
std::shared_ptr<IUserDAO> user_dao;
|
||||
std::shared_ptr<MemoryAuthDAO> auth_dao;
|
||||
|
||||
Request req;
|
||||
|
||||
AuthFixture()
|
||||
{
|
||||
BOOST_TEST_MESSAGE("Setup fixture");
|
||||
}
|
||||
~AuthFixture()
|
||||
{
|
||||
BOOST_TEST_MESSAGE("Teardown fixture");
|
||||
}
|
||||
AuthFixture();
|
||||
|
||||
~AuthFixture();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user