static void TestStatePhoneCall() { var phoneCall = new PhoneCall("Lokesh"); phoneCall.Print(); phoneCall.Dialed("Prameela"); phoneCall.Print(); phoneCall.Connected(); phoneCall.Print(); phoneCall.SetVolume(2); phoneCall.Print(); phoneCall.Hold(); phoneCall.Print(); phoneCall.Mute(); phoneCall.Print(); phoneCall.Unmute(); phoneCall.Print(); phoneCall.Resume(); phoneCall.Print(); phoneCall.SetVolume(11); phoneCall.Print(); Console.WriteLine("Graph..."); Console.WriteLine(phoneCall.ToDotGraph()); Console.WriteLine("Press any key..."); Console.ReadKey(true); }
static void Main(string[] args) { var phoneCall = new PhoneCall("MyFriend"); phoneCall.Print(); phoneCall.Dialed("Prameela"); phoneCall.Print(); phoneCall.Connected(); phoneCall.Print(); phoneCall.SetVolume(2); phoneCall.Print(); phoneCall.Hold(); phoneCall.Print(); phoneCall.Mute(); phoneCall.Print(); phoneCall.Unmute(); phoneCall.Print(); phoneCall.Resume(); phoneCall.Print(); phoneCall.SetVolume(11); phoneCall.Print(); Console.WriteLine(phoneCall.ToDotGraph()); Console.WriteLine("Press any key..."); Console.ReadKey(true); }