public void GetNextClaim_ShouldGetCorrectBool() { //arrange ClaimMethods repo = new ClaimMethods(); ClaimProperties _claimObject = new ClaimProperties(1, ClaimType.Car, "Car Accident on 465.", 400.00, new DateTime(2018, 04, 25), new DateTime(2018, 04, 27)); repo.AddContentToRepo(_claimObject); //act int getNext = repo.ClaimQueueUp(); //assert Assert.AreEqual(1, getNext); }
//show next claim public void ShowNextClaim() { Console.Clear(); int ClaimID = _claimMethods.ClaimQueueUp(); Console.WriteLine(ClaimID); Console.WriteLine("Do you want to address this claim now? (y/n)"); string myinput = Console.ReadLine(); if (myinput == "y") { _claimMethods.ClaimDequeue(); Console.WriteLine("Claim removed. Press any key to continue..."); Console.ReadKey(); } }