public void AddQueueContentTest() { _testClaimsRepo = new ClaimsRepositiory(); _testClaimsRepo.AddContentToQue(testClaim); Queue <Claim> queContent = _testClaimsRepo.GetQueue(); foreach (Claim Claim in queContent) { Assert.IsNotNull(Claim); } }
public void GetQueueTest() { _testClaimsRepo = new ClaimsRepositiory(); _testClaimsRepo.AddContentToQue(testClaim); Queue <Claim> getTestQueues = _testClaimsRepo.GetQueue(); foreach (Claim Claim in getTestQueues) { Assert.IsNotNull(Claim); } }
private void CreateNewClaim() { Console.Clear(); Claim newClaim = new Claim(); // get the claim ID Console.WriteLine("\nEnter the Claim ID Number:"); newClaim.ClaimID = Int16.Parse(Console.ReadLine()); // get the type Console.WriteLine("\nEnter the Type of Claim (Car, Home, Theft):"); newClaim.ClaimType = Console.ReadLine(); // get the Description Console.WriteLine("\nEnter a Short Description of Claim:"); newClaim.Description = Console.ReadLine(); // get the amount of the claim Console.WriteLine("\nEnter the Amount of the Claim:"); newClaim.Amount = Double.Parse(Console.ReadLine()); // date of the incident Console.WriteLine("\nEnter the Date of the Incident in \"mm/dd/yy\":"); newClaim.DateOfClaim = Console.ReadLine(); Console.WriteLine("\nEnter if the Claim Is \"Valid\" with \"Yes\" or \"No\":"); string _IsValid = Console.ReadLine().ToLower(); if (_IsValid == "yes") { newClaim.IsValid = true; } else { newClaim.IsValid = false; } _claimContent.AddContentToQue(newClaim); }