Ejemplo n.º 1
0
        public void MasterList_GetAllCustomersInList_ShouldSucceed()
        {
            //act
            _masterListMethods.AddCustomerToMasterList(newPastCustomer);
            _masterListMethods.GetAllCustomers();

            //assert
            Assert.AreEqual(1, _masterListMethods.GetAllCustomers().Count);
        }
Ejemplo n.º 2
0
        public void SeeAllCustomers()
        {
            if (MasterList.GetAllCustomers().Count > 0)
            {
                _console.WriteLine("Display all customers");

                foreach (var customer in MasterList.GetAllCustomers())
                {
                    _console.WriteLine($"Name: {customer.FullName}\n" +
                                       $"Address: {customer.Address}\n" +
                                       $"City: {customer.City}\n" +
                                       $"State: {customer.State}\n" +
                                       $"ZipCode: {customer.ZipCode}");
                }
            }
            else
            {
                _console.WriteLine("The list is empty");
            }
        }