Exemplo n.º 1
0
 public cyTest()
 {
     this._t = new cyTariff("test", 100);
     cyBill b = new cyBill(20);
     cySessionHandler s = new cySessionHandler(this._t, b);
     this._client = new cyClient("client 1", s, null);
 }
Exemplo n.º 2
0
 protected void printClientStatus(cyClient client)
 {
     Console.WriteLine(TimeSpan.FromSeconds(client.session.getTotalTime()).ToString() + ": $" + client.session.getTotalMoney().ToString());
     if (client.session.isPrepaid) {
         Console.WriteLine(TimeSpan.FromSeconds(client.session.getAvailableTime()).ToString());
     }
 }