示例#1
0
        public void DeletePartyFromListTest()
        {
            _partyTestList.DeletePartyFromList(new DateTime(2019, 6, 15));

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

            Assert.AreEqual(expected, actual);
        }
        public void DeleteParty()
        {
            Console.Write("Please enter the date of the party to remove: ");
            DateTime deleteDate = DateTime.Parse(Console.ReadLine());

            _partyRepo.DeletePartyFromList(deleteDate);
            Console.WriteLine("Party removed\n" +
                              "Press any key to continue...");
            Console.ReadKey();
        }