- auto & address = user.GetProperties().address;
- auto & note = user.GetProperties().note;
- auto & group = user.GetProperties().group;
-
- address.Set("address", admin, "", store, "");
- note.Set("note", admin, "", store, "");
- group.Set("group", admin, "", store, "");
-
- ensure_equals("entries = 3", store.GetEntries(), 3);
-
- note.Set("another note", admin, "", store, "");
+BOOST_AUTO_TEST_CASE(NormalBehavior)
+{
+ Settings settings;
+ settings.addFilter("*"); // Allow everything by default.
+ TestTariffs tariffs;
+ tariffs.ReadTariffs();
+ STG::Admin admin(STG::Priv(0xFFFF), {}, {});
+ Store store;
+ TestAuth auth;
+ TestUsers users;
+ TestServices services;
+ STG::UserImpl user(&settings, &store, &tariffs, &admin, &users, services);