code cleanup

This commit is contained in:
Martin Brodbeck 2018-07-20 11:52:26 +02:00
parent 74719b762f
commit 6000bb3ef2
17 changed files with 65 additions and 67 deletions

View file

@ -30,11 +30,11 @@ BOOST_AUTO_TEST_CASE(store_sellers_succ)
auto b = std::make_unique<Seller>("Max", "Mustermann");
b->createUuid();
b->setSellerNo(2);
auto c = std::make_shared<Article>();
auto c = std::make_unique<Article>();
c->createUuid();
c->setPrice(500);
c->setDescription("Test");
b->addArticle(c);
b->addArticle(std::move(c));
BOOST_TEST(a->getUuid() != b->getUuid());
sellers.push_back(std::move(a));
sellers.push_back(std::move(b));