2018-07-09 16:40:22 +02:00
|
|
|
#define BOOST_TEST_MODULE seller
|
|
|
|
|
2018-07-09 21:42:04 +02:00
|
|
|
#include "../src/core/seller.h"
|
|
|
|
|
2018-07-09 16:54:04 +02:00
|
|
|
#include <boost/test/included/unit_test.hpp>
|
|
|
|
|
|
|
|
using namespace boost::unit_test;
|
2018-07-09 16:40:22 +02:00
|
|
|
|
2018-07-09 17:52:46 +02:00
|
|
|
BOOST_AUTO_TEST_CASE( create_uuid_nil ) {
|
2018-07-09 16:40:22 +02:00
|
|
|
Seller seller{};
|
|
|
|
BOOST_TEST(seller.getUuid().is_nil() == true);
|
|
|
|
}
|
2018-07-09 17:52:46 +02:00
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(create_uuid) {
|
|
|
|
Seller seller{};
|
|
|
|
seller.createUuid();
|
|
|
|
BOOST_TEST(seller.getUuid().is_nil() == false);
|
|
|
|
}
|