Beispiel #1
0
        private void SeeAllClaims()
        {
            Queue <KomodoInsurance> _ListOfInsurance = _challengeTwo.GetKomodoInsurance();

            foreach (KomodoInsurance Insurance in _ListOfInsurance)
            {
                Console.WriteLine($"ClaimID: {Insurance.ClaimID}," +
                                  $" ClaimType: {Insurance.OfClaimType}," +
                                  $" Description: {Insurance.Description}\n" +
                                  $"Amount: ${Insurance.ClaimAmount}," +
                                  $" Date of incident: {Insurance.DateOfIncident}," +
                                  $" Date of claim: {Insurance.DateOfClaim}," +
                                  $" Valid? {Insurance.IsValid}\n");
            }
            Console.WriteLine("Press any key to continue.");
            Console.ReadLine();
        }
        private void AddInsuranceTest()
        {
            _InsuranceRepo.AddInsuranceToList(_Insurance);

            int expected = 1;
            int actual   = _InsuranceRepo.GetKomodoInsurance().Count;

            Assert.AreEqual(expected, actual);
        }