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