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); } }
public void ShowMenuOfSimCards() { SimCardHandler simCardHandler = new SimCardHandler(Output); simCardHandler.ShowMenuOfSimCards(); }