Exemple #1
0
 public Contract(int telephoneNumber, Tariff tariff)
 {
     Tariff          = tariff;
     TelephoneNumber = telephoneNumber;
 }
Exemple #2
0
 public void AddTariff(Tariff tariff)
 {
     Tariffs ??= new List <Tariff>();
     Tariffs.Add(tariff);
 }
Exemple #3
0
 public Contract(Tariff tariff)
 {
     Tariff          = tariff;
     TelephoneNumber = Random.Next(100, 999);
 }
Exemple #4
0
 /// <summary>
 /// Клнструктор с параметрами
 /// </summary>
 /// <param name="tariff">Тариф</param>
 public TariffesHistory(Tariff tariff)
 {
     tariffes.Add(tariff);
 }