Example #1
0
        public void GetAndProcessUserSelectionOfSimCard(SimCorpMobile simCorpMobile)
        {
            SimCardHandler simCardHandler = new SimCardHandler(Output);

            string enteredSimCardTypeIndex = Input.ReadLine();

            try
            {
                SimCardTypes simCardType      = simCardHandler.GetSimCardType(enteredSimCardTypeIndex);
                ISimCard     simCardComponent = simCardHandler.GetSimCard(simCardType);
                simCardHandler.SetAndConnectSimCard(simCorpMobile, simCardComponent);
            }
            catch (Exception e)
            {
                Output.Write(e.Message);
            }
        }
Example #2
0
        public void ShowMenuOfSimCards()
        {
            SimCardHandler simCardHandler = new SimCardHandler(Output);

            simCardHandler.ShowMenuOfSimCards();
        }