public void ShowAll() { List <Party> partyList = _partyRepo.GetPartyList(); foreach (Party party in partyList) { Console.WriteLine($"Party Date: {party.PartyDate.Month}/{party.PartyDate.Day}/{party.PartyDate.Year}\n" + $"Burger Booth - Tickets Used: {party.BurgerBooth.TicketsTaken} -- Total Cost of Supplies: ${party.BurgerBooth.TotalCost}\n" + $"Treat Booth - Tickets used: {party.TreatBooth.TicketsTaken} -- Total Cost of Supplies: ${party.TreatBooth.TotalCost}\n" + $"Total Cost of Party: ${party.TotalPartyCost}\n" + $"----------------------"); } decimal costOfAll = _partyRepo.GetCostOfAllParties(partyList); Console.WriteLine($"Total Cost of All Parties: ${costOfAll}\n" + $"Press any key to contine..."); Console.ReadKey(); }
public void GetPartyListTest() { Assert.IsInstanceOfType(_partyTestList.GetPartyList(), typeof(List <Party>)); }