public Contract RegisterContract(Subscriber subscriber, Tariff tariff) { int telephoneNumber; do { telephoneNumber = _random.Next(1000000, 9999999); } while (_billingSystem.UsersData.ContainsKey(telephoneNumber)); var port = new Port(telephoneNumber); var terminal = new Terminal(port); var contract = new Contract(port, terminal, subscriber, tariff); RegisterUserEvent?.Invoke(this, contract); return(contract); }
public static void RegisterUserEventCall(FirebaseUser user, string name) { RegisterUserEvent.Invoke(user, name); }