]> git.stg.codes - stg.git/blobdiff - tests/test_tariff.cpp
Ticket 37. td.tariffConf.changePolicy definition fixed in the
[stg.git] / tests / test_tariff.cpp
index 188785c7eff02ab81913bd34d6a178e345e48b60..71b1e57b74e5db0c619ce251525b9d8992d35da7 100644 (file)
@@ -352,7 +352,7 @@ namespace tut
         set_test_name("Check changePolicy - ALLOW");
 
         TARIFF_DATA td("test");
-        td.tariffConf.changePolicy = TARIFF::CHANGE_POLICY ALLOW;
+        td.tariffConf.changePolicy = TARIFF::ALLOW;
         td.tariffConf.fee = 100;
         TARIFF_IMPL tariff(td);
 
@@ -364,7 +364,7 @@ namespace tut
         td.tariffConf.fee = 100;
         TARIFF_IMPL equals(td);
 
-        ensure_equals("Allow equal", tariff.TariffChangeIsAllowed(equal).empty(), true);
+        ensure_equals("Allow equal", tariff.TariffChangeIsAllowed(equals).empty(), true);
 
         td.tariffConf.fee = 150;
         TARIFF_IMPL expensive(td);
@@ -379,7 +379,7 @@ namespace tut
         set_test_name("Check changePolicy - TO_CHEAP");
 
         TARIFF_DATA td("test");
-        td.tariffConf.changePolicy = TARIFF::CHANGE_POLICY TO_CHEAP;
+        td.tariffConf.changePolicy = TARIFF::TO_CHEAP;
         td.tariffConf.fee = 100;
         TARIFF_IMPL tariff(td);
 
@@ -391,7 +391,7 @@ namespace tut
         td.tariffConf.fee = 100;
         TARIFF_IMPL equals(td);
 
-        ensure_equals("Allow equal", !tariff.TariffChangeIsAllowed(equal).empty(), true);
+        ensure_equals("Allow equal", !tariff.TariffChangeIsAllowed(equals).empty(), true);
 
         td.tariffConf.fee = 150;
         TARIFF_IMPL expensive(td);