public void AddNewParty()
        {
            Console.Write("Enter the date of the party: ");
            DateTime partyDate = DateTime.Parse(Console.ReadLine());

            Console.Write("Enter the number of hamburger tickets taken: ");
            int hamburgerTickets = int.Parse(Console.ReadLine());

            Console.Write("Enter the number of veggie burger tickets taken: ");
            int veggieBurgerTickets = int.Parse(Console.ReadLine());

            Console.Write("Enter the number of hot dog tickets taken: ");
            int hotdogTickets = int.Parse(Console.ReadLine());

            Console.Write("Enter the number of ice cream tickets taken: ");
            int iceCreamTickets = int.Parse(Console.ReadLine());

            Console.Write("Enter the number of popcorn tickets taken: ");
            int   popcornTickets = int.Parse(Console.ReadLine());
            Party newParty       = new Party(partyDate, new BurgerBooth(hamburgerTickets, veggieBurgerTickets, hotdogTickets), new TreatBooth(iceCreamTickets, popcornTickets));

            _partyRepo.AddPartyToList(newParty);
            Console.WriteLine("Party added\n" +
                              "Press any key to continue...");
            Console.ReadKey();
        }
Exemplo n.º 2
0
        public void AddPartyToListTest()
        {
            Party partyTwo = new Party(new DateTime(2019, 5, 5), new BurgerBooth(125, 30, 50), new TreatBooth(150, 45));

            _partyTestList.AddPartyToList(partyTwo);

            int expected = 2;
            int actual   = _partyTestList.GetPartyList().Count;

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
 public void Arrange()
 {
     _partyTestList = new BarbacueRepository();
     _party         = new Party(new DateTime(2019, 6, 15), new BurgerBooth(150, 25, 70), new TreatBooth(200, 30));
     _partyTestList.AddPartyToList(_party);
 }