66 lines
No EOL
2.5 KiB
MQL5
66 lines
No EOL
2.5 KiB
MQL5
//+------------------------------------------------------------------+
|
|
//| TestCustomers.mq5 |
|
|
//| Copyright 2025, Niquel Mendoza. |
|
|
//| https://www.mql5.com/es/users/nique_372 |
|
|
//+------------------------------------------------------------------+
|
|
#property copyright "Copyright 2025, Niquel Mendoza."
|
|
#property link "https://www.mql5.com/es/users/nique_372"
|
|
#property version "1.00"
|
|
#property strict
|
|
|
|
//+------------------------------------------------------------------+
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
#include "Main.mqh"
|
|
|
|
//+------------------------------------------------------------------+
|
|
//| |
|
|
//+------------------------------------------------------------------+
|
|
input long InpCharId = 0;
|
|
input string InpApiKey = "";
|
|
input string InpSoftwareId = "ODA4X3EF";
|
|
input string InpUserId = "Ir1vSmDzvzT8esYE8uMtJDCYGkQ2";
|
|
input string InpTelegramUser = "trade_system_nique";
|
|
|
|
//+------------------------------------------------------------------+
|
|
//| Expert initialization function |
|
|
//+------------------------------------------------------------------+
|
|
int OnInit()
|
|
{
|
|
//---
|
|
CTbpCustomers tbp;
|
|
tbp.AddLogFlags(LOG_ALL);
|
|
tbp.ApyKey(InpApiKey);
|
|
tbp.SoftwareId(InpSoftwareId);
|
|
tbp.AdditionalData(new CAditionalDataAccountId(), true);
|
|
|
|
//---
|
|
CiTestUtil util;
|
|
util.AddLogFlags(LOG_ALL);
|
|
util.TestSize(3);
|
|
util.SetTestPtr(0, new CTestGetCustomersSoftware(&tbp));
|
|
util.SetTestPtr(1, new CTestUserHasSoftware(&tbp, InpUserId));
|
|
util.SetTestPtr(2, new CTestUserHasSoftwareNoAdditional(&tbp, InpUserId));
|
|
|
|
//---
|
|
util.Init(InpCharId, 70, __FILE__, 95.0);
|
|
util.RunAllTestAndSend();
|
|
|
|
//---
|
|
return CIBYLEO_ONINIT_FINISH;
|
|
}
|
|
//+------------------------------------------------------------------+
|
|
//| Expert deinitialization function |
|
|
//+------------------------------------------------------------------+
|
|
void OnDeinit(const int reason)
|
|
{
|
|
//---
|
|
}
|
|
//+------------------------------------------------------------------+
|
|
//| Expert tick function |
|
|
//+------------------------------------------------------------------+
|
|
void OnTick()
|
|
{
|
|
//---
|
|
}
|
|
//+------------------------------------------------------------------+ |