private void InsureSomeone()
        {
            Console.Clear();
            Console.WriteLine("Let us get you insured! What is their name?");
            string CustomerName = Console.ReadLine();

            Console.WriteLine("How often do they follow the speed limit?");
            int FollowSpeedLimit = int.Parse(Console.ReadLine());

            Console.WriteLine("How often do they Swerve outside their lane?");
            int swerveOutOfLane = int.Parse(Console.ReadLine());

            Console.WriteLine("How often do they do a Callifornia Stop?");
            int CaliStop = int.Parse(Console.ReadLine());

            Console.WriteLine("How often do they TailGate?");
            int TailGate = int.Parse(Console.ReadLine());

            InsurancePoco NewDriverToList = new InsurancePoco(CustomerName, FollowSpeedLimit, swerveOutOfLane, CaliStop, TailGate);

            _insurancerepo.InsuranceCost(NewDriverToList);

            _insurancerepo.AddDriverToList(NewDriverToList);

            Console.WriteLine("They are now insured! Press any key to continue");
            Console.ReadKey();
        }
        public decimal InsuranceCost(InsurancePoco List)
        {
            SpeedingCalc(List);

            SwerveCalc(List);

            CaliStopCalc(List);

            TailGatingCalc(List);

            List.DriverCost = InsuranceTotalCost;

            return(InsuranceTotalCost);
        }
 private void SpeedingCalc(InsurancePoco List)
 {
     if (List.SpeedLimit == 0)
     {
         InsuranceTotalCost += 0;
     }
     else if (List.SpeedLimit >= 1 && List.SpeedLimit <= 4)
     {
         InsuranceTotalCost += 25;
     }
     else if (List.SpeedLimit >= 5)
     {
         InsuranceTotalCost += 50;
     }
 }
 private void SwerveCalc(InsurancePoco List)
 {
     if (List.SwerveOutSideLane == 0)
     {
         InsuranceTotalCost += 0;
     }
     else if (List.SwerveOutSideLane >= 1 && List.SwerveOutSideLane <= 4)
     {
         InsuranceTotalCost += 25;
     }
     else if (List.SwerveOutSideLane >= 5)
     {
         InsuranceTotalCost += 50;
     }
 }
 private void CaliStopCalc(InsurancePoco List)
 {
     if (List.CaliStopSign == 0)
     {
         InsuranceTotalCost += 0;
     }
     else if (List.CaliStopSign >= 1 && List.CaliStopSign <= 4)
     {
         InsuranceTotalCost += 25;
     }
     else if (List.CaliStopSign >= 5)
     {
         InsuranceTotalCost += 50;
     }
 }
 private void TailGatingCalc(InsurancePoco List)
 {
     if (List.TailGating == 0)
     {
         InsuranceTotalCost += 0;
     }
     else if (List.TailGating >= 1 && List.TailGating <= 4)
     {
         InsuranceTotalCost += 25;
     }
     else if (List.TailGating >= 5)
     {
         InsuranceTotalCost += 50;
     }
 }
 public void AddDriverToList(InsurancePoco NewDriver)
 {
     InsuranceList.Add(NewDriver);
 }