- template<>
- template<>
- void testobject::test<1>()
- {
- set_test_name("Check normal behaviour");
-
- TEST_SETTINGS_LOCAL settings(false);
- TEST_TARIFFS tariffs;
- tariffs.ReadTariffs();
- STG::Admin admin(STG::Priv(0xFFFF), {}, {});
- 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);
-
- STG::UserProperty<std::string> & tariffName = user.GetProperties().tariffName;
- STG::UserProperty<STG::UserIPs> & ips = user.GetProperties().ips;
-
- ips = STG::UserIPs::parse("*");
+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);