예제 #1
0
        public void SuccessfulCall()
        {
            Assert.That(_senderTerminal.ConnectToExchange() == true);
            Assert.That(_reciverTerminal.ConnectToExchange() == true);

            Assert.That(_senderTerminal.MakeCall(_reciverTerminal.PhoneNumber) == CallState.Connected);

            Assert.That(_reciverTerminal.ReceiveCall() == CallState.Connected);

            Task.Delay(1000).Wait();
            Assert.That(_reciverTerminal.CloseCall() == CallState.Disconnected);

            Assert.That(_senderTerminal.DisconnectFromExchange() == true);
            Assert.That(_reciverTerminal.DisconnectFromExchange() == true);
        }