more on articles

This commit is contained in:
Martin Brodbeck 2018-07-11 13:25:39 +02:00
parent c1c7e32291
commit f42855dc50
5 changed files with 34 additions and 19 deletions

View file

@ -6,8 +6,6 @@
#include <boost/test/included/unit_test.hpp>
// using namespace boost::unit_test;
BOOST_AUTO_TEST_CASE(create_uuid_nil)
{
Seller seller{};
@ -29,4 +27,12 @@ BOOST_AUTO_TEST_CASE(create_many)
sellers[i] = Seller();
sellers[i].createUuid();
}
}
BOOST_AUTO_TEST_CASE(with_article) {
Seller seller("Max", "Mustermann");
Article article{};
article.setDescription("Test article");
seller.addArticle(article);
BOOST_TEST(seller.getArticles().at(0)->getDescription() == "Test article");
}