Beispiel #1
0
        private static void GenerateCall(AutomaticTelephoneStation ats, ICustomer customer, int number)
        {
            var random = new Random();

            customer.Call(number); // Calling
            ats.UsersData.Values
            .FirstOrDefault(x => x.Terminal.Number == number)
            ?.Answer();        // Answering at Call
            Thread.Sleep(50);
            customer.Reject(); // Rejecting
        }