1 #ifndef __TEST_TARIFFS_H__
 
   2 #define __TEST_TARIFFS_H__
 
   4 #include "stg/tariffs.h"
 
   6 #include "tariff_impl.h"
 
   8 class TEST_TARIFFS : public TARIFFS {
 
  12         int            ReadTariffs () { return 0; }
 
  13         const TARIFF * FindByName(const std::string & /*name*/) const { return &testTariff; }
 
  14         const TARIFF * GetNoTariff() const { return NULL; }
 
  15         int            Del(const std::string & /*name*/, const ADMIN * /*admin*/) { return 0; }
 
  16         int            Add(const std::string & /*name*/, const ADMIN * /*admin*/) { return 0; }
 
  17         int            Chg(const TARIFF_DATA & /*td*/, const ADMIN * /*admin*/) { return 0; }
 
  19         void AddNotifierAdd(NOTIFIER_BASE<TARIFF_DATA> *) {}
 
  20         void DelNotifierAdd(NOTIFIER_BASE<TARIFF_DATA> *) {}
 
  22         void AddNotifierDel(NOTIFIER_BASE<TARIFF_DATA> *) {}
 
  23         void DelNotifierDel(NOTIFIER_BASE<TARIFF_DATA> *) {}
 
  25         void           GetTariffsData(std::list<TARIFF_DATA> * /*tdl*/) {}
 
  27         size_t         Count() const { return 0; }
 
  29         const std::string & GetStrError() const { return strError; }
 
  31         void           SetFee(double fee);
 
  35         TARIFF_IMPL testTariff;
 
  39 void TEST_TARIFFS::SetFee(double fee)
 
  41     TARIFF_DATA td(testTariff.GetTariffData());
 
  42     td.tariffConf.fee = fee;