//remove public void RemoveInsuranceFromList(KomodoInsurance Insurance) { while (_ListOfInsurance.Count > 0) { Console.WriteLine(_ListOfInsurance.Dequeue()); } Console.WriteLine($"Number of elements in queue = {_ListOfInsurance.Count}"); }
public void UpdateExistingInsurance(int originalInsurance, KomodoInsurance newInsurance) { //find the thing KomodoInsurance oldInsurance = GetKomodoByInsurance(originalInsurance); //apply changes to the thing oldInsurance.ClaimID = newInsurance.ClaimID; oldInsurance.OfClaimType = newInsurance.OfClaimType; oldInsurance.Description = newInsurance.Description; oldInsurance.ClaimAmount = newInsurance.ClaimAmount; oldInsurance.DateOfIncident = newInsurance.DateOfIncident; oldInsurance.DateOfClaim = newInsurance.DateOfClaim; oldInsurance.IsValid = newInsurance.IsValid; }
//add public void AddInsuranceToList(KomodoInsurance Insurance) { _ListOfInsurance.Enqueue(Insurance); }