- typedef tg::object testobject;
-
- template<>
- template<>
- void testobject::test<1>()
- {
- set_test_name("Check normal behaviour");
-
- TEST_SETTINGS_LOCAL settings(false);
- TEST_TARIFFS tariffs;
- TEST_ADMIN admin;
- TEST_STORE store;
- TEST_AUTH auth;
- TEST_USERS users;
- TEST_SERVICES services;
- STG::UserImpl user(&settings, &store, &tariffs, &admin, &users, services);
-
- AFTER_CONNECTED_NOTIFIER connectionNotifier;
-
- user.AddConnectedAfterNotifier(&connectionNotifier);
+BOOST_AUTO_TEST_CASE(NormalBehavior)
+{
+ Settings settings(false);
+ TestTariffs tariffs;
+ tariffs.ReadTariffs();
+ STG::Admin admin(STG::Priv(0xFFFF), {}, {});
+ TestStore store;
+ TestAuth auth;
+ TestUsers users;
+ TestServices services;
+ STG::UserImpl user(&settings, &store, &tariffs, &admin, &users, services);